inamiy / FunAsync

⏳ Collection of Swift 5.5 async/await utility functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⏳ FunAsync

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 to AsyncStream)
    • withRetry (with customizability e.g. exponential backoff)
    • withTimeout (racing with time)

License

MIT

About

⏳ Collection of Swift 5.5 async/await utility functions.

License:MIT License


Languages

Language:Swift 98.8%Language:Makefile 1.2%