trivial-deferred

WebJar for trivial-deferred

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trivial-deferred
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

trivial-deferred
WebJar for trivial-deferred
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/trivial-deferred

Download trivial-deferred

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/trivial-deferred/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>trivial-deferred</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/trivial-deferred/
implementation 'org.webjars.npm:trivial-deferred:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/trivial-deferred/
implementation ("org.webjars.npm:trivial-deferred:1.0.1")
'org.webjars.npm:trivial-deferred:jar:1.0.1'
<dependency org="org.webjars.npm" name="trivial-deferred" rev="1.0.1">
  <artifact name="trivial-deferred" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='trivial-deferred', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "trivial-deferred" % "1.0.1"
[org.webjars.npm/trivial-deferred "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

trivial-deferred

The most dead-simple trivial Deferred implementation

Uses bluebird if available, otherwise native promises.

USAGE

var Deferred = require('trivial-deferred')
var d = new Deferred
// promise is d.promise
// to make the promise reject, do d.reject(error)
// to make the promise resolve, do d.resolve(value)

Versions

Version
1.0.1