belozierov / SwiftCoroutine

Swift coroutines for iOS, macOS and Linux.
https://belozierov.github.io/SwiftCoroutine
MIT License
836 stars 51 forks source link

Recommended way to handle callbacks that return Swift.Result #26

Closed SomeRandomGuyOnTheInternet closed 4 years ago

SomeRandomGuyOnTheInternet commented 4 years ago

I'm not sure if this is where I should bring this up but it'll do for now, I guess. Anyway, is there a recommended way to handle callbacks that return enums like Swift.Result?

belozierov commented 4 years ago

@SomeRandomGuyOnTheInternet Hi, could you clarify with an example what you mean so I know exactly what case you're about.