Collection of Swift 5.5 async
/await
utility functions.
- Throw <-> Result conversion
asyncThrowsToAsyncResult
asyncResultToAsyncThrows
- More Concurrency helpers
asyncFirst
(Promise.race
)asyncFirstSuccess
(Promise.any
)asyncAll
(Promise.all
)asyncAllSettled
(Promise.allSettled
)asyncOr
(sequential execution until first success)asyncStream
(from asyncs toAsyncStream
)withRetry
(with customizability e.g. exponential backoff)withTimeout
(racing with time)