I have released 2nd version of AsyncObjects providing the following functionalities:
- Easier top-level task cancellation with
CancellationSource. - Introducing traditional synchronization primitives that work in non-blocking way with
AsyncSemaphore,AsyncEventandAsyncCountdownEventand also supporting cooperative cancellation. - Bridging with Grand Central Dispatch and allowing usage of GCD specific patterns with
TaskOperationandTaskQueue. - Transferring data between multiple task boundaries with
Future.
I am excited to share this package with community, feel free to point out corrections, suggestions and even collaboration on some Swift projects. Thanks.