Skip to content

Release 0.3.0

Compare
Choose a tag to compare
@Maia-Everett Maia-Everett released this 27 Jul 06:32
· 9 commits to master since this release

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 when PromiseFactory.resolve(null) exists and returning null from then callbacks is usually sufficient.
  • Thenable.then is now required not to throw checked exceptions.
  • All uses of then callbacks are now declared with super for the promise's resolved value. For example, the single-argument then now accepts a ResolveCallback<? super V, ? extends R>.
  • Added Promise.thenRun, which ignores the promise's resolved value.
  • Added then, thenCompose, thenApply, thenAccept and thenRun methods to JsPromise, in both their single-argument and two-argument forms.