Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inamiy/funasync
⏳ Collection of Swift 5.5 async/await utility functions.
https://github.com/inamiy/funasync
async async-await concurrency swift
Last synced: 3 months ago
JSON representation
⏳ Collection of Swift 5.5 async/await utility functions.
- Host: GitHub
- URL: https://github.com/inamiy/funasync
- Owner: inamiy
- License: mit
- Created: 2021-09-01T16:20:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T15:12:51.000Z (about 2 years ago)
- Last Synced: 2024-04-15T02:56:32.968Z (9 months ago)
- Topics: async, async-await, concurrency, swift
- Language: Swift
- Homepage:
- Size: 28.3 KB
- Stars: 24
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⏳ 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](LICENSE)