Skip to content

v1.3

Compare
Choose a tag to compare
@pnerg pnerg released this 25 Jul 12:18
· 204 commits to master since this release

This release includes functionality such as:

  • Future
    • apply
    • transform
    • recover
  • Promise
    • complete
    • completeWith
    • try_NNN_ for completing a promise without throwing exceptions should it already be completed
  • Try
    • apply

Added a new functional interface ThrowableFunction0 that allows for composing Lambda expressions that throw checked exceptions.

New Scala type companion classes allowing for instance creation Scala style without using the new keyword.
Single line statements for executing an asynchronous computation returning the Future with the value-to-be...no additional hassle with threads or ugly locks.

Future<Integer> future = Future(() -> 9/3); // The Future will at some point contain: Success(3)

Wrap a Lambda expression into a Try completely managing any try/catch related code rendering in neat single line statements for generating Try compositions.

Try<Integer> success = Try(() -> 9/3); //Will be Success(3);
Try<Integer> fail = Try(() -> 0/9) //Will be Failure(ArithmethicException)

Full list of enhancements at from milestone: Milestone 1.3

Java Doc for the release can be found @ JavaDoc 1.3