FutureLib is a pure Swift 2 library implementing Futures & Promises inspired by Scala, Promises/A+ and a cancellation concept with CancellationRequest and CancellationToken similar to Cancellation in Managed Threads in Microsoft’s Task Parallel Library (TPL).
FutureLib helps you to write concise and comprehensible code to implement correct asynchronous programs which include error handling and cancellation.
Features:
- Employs the asynchronous “non-blocking” style.
- Supports composition of tasks.
- Supports a powerful cancellation concept by means of “cancellation tokens”.
- Greatly simplifies error handling in asynchronous code.
- Continuations can be specified to run on a certain “Execution Context”.

Leave a Reply
You must be logged in to post a comment.