Release 0.3.0
API breaking release. Binary compatibility should be preserved, unless you relied on the one removed method.
- Removed
PromiseFactory.ofNull
. There isn't really a good use case for it whenPromiseFactory.resolve(null)
exists and returningnull
fromthen
callbacks is usually sufficient. Thenable.then
is now required not to throw checked exceptions.- All uses of
then
callbacks are now declared withsuper
for the promise's resolved value. For example, the single-argumentthen
now accepts aResolveCallback<? super V, ? extends R>
. - Added
Promise.thenRun
, which ignores the promise's resolved value. - Added
then
,thenCompose
,thenApply
,thenAccept
andthenRun
methods toJsPromise
, in both their single-argument and two-argument forms.