🏛️

I have released a new Swift package: AsyncResult.

It is an extension of the Result enum with an in-progress case. This is a µ-framework that I use in most of my projects—it is a common 3-to-4 set of states, with Optional, to want to represent. The work is comprehensive.

If it compiles it’s correct, etc.

https://github.com/kylehughes/swift-async-result

GitHub - kylehughes/swift-async-result: Swift's Result type, extended with an in-progress case for asynchronous operations.

Swift's Result type, extended with an in-progress case for asynchronous operations. - kylehughes/swift-async-result

GitHub

@kyle (sorry) should this be using nonisolated(nonsending) instead of sending for all the closures?

Since you await them all inline (rather than sending them to a Task), sending seems overly restrictive.

@hal That is a good observation, thank you! Version numbers are free.