Skip to content

Releases: jakehawken/Concurrency

1.0.0 for Pod

18 Oct 19:41
Compare
Choose a tag to compare

Release for Pod.

New Features

  • Added .map(_:) method to Future for translating from futures with one generic type to futures with another.
  • Infinite then and error blocks. Utilizes a child future / linked list pattern.
  • Joined futures. Call class method joining and pass in an array of Future objects, and get a single Future<[T]> which will complete when all have succeeded or any have failed.
  • Added some similar syntactic sugar to StreamState as that which exists on Result: .onNew(_:) and .onError(_:)
  • Added handy, static preResolved(value:) and preRejected(error:) methods for synchronous/immediate futures. (Good for testing and for methods where the state/parameters don't meet the needs of the asynchronous work.)
  • Added finally(_:) block to future that executes on either type of completion.

Fixes / Optimizations

  • Improved performance and thread safety by using a DispatchQueue on Future.
  • Future now uses a single Result? under the hood instead of two separate optionals (T? and Error?)

Other Stuff

I like to keep the README.md file pretty informative and update, so for more details, check that out, and for any questions, feel free to create an issue. Or, even better, reach out to me on Twitter @geekisthenewcool.

Thanks for checking it out!

0.1.0 for Pod

09 Oct 05:07
Compare
Choose a tag to compare

Release for Pod.