Commit Graph
5 Commits
Author SHA1 Message Date
NachoSoto 2bcd0ce328 5.0.0 changes: support SK2 by default 2024-07-01 14:37:21 -05:00
NachoSoto 094e8f2aad Extracted and tested AsyncSequence.extractValues (#2538) 2023-05-25 07:14:58 -07:00
NachoSoto 217fe82409 Async.call: added non-throwing overload (#2006)
This will be used by an upcoming PR.
2022-11-07 12:40:12 -08:00
NachoSoto b981e0fa4b Async.call method to convert completion-block call to async (#1969)
This simplifies calling completion-block APIs as `async`. The opposite
of what #1943 introduced.
2022-10-10 08:36:15 -07:00
NachoSoto 46ac7598fc Abstracted conversion from async to completion-block APIs (#1943)
Created `Async` with some shared methods that make this conversion
simpler in a type-safe way.

Helps turn this:
```swift
_ = Task<Void, Never> {
    do {
        completion(.success(try await f()))
    } catch {
        completion(.failure(ErrorUtils.error())
    }
}
```

Into this:
```swift
Async.call(with: completion) {
    try await f()
}
```
2022-09-28 08:40:59 -07:00