-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
Is your feature request related to a problem? Please describe.
I noticed that this API exists in the Option module, but not here, and they would be useful to have.
Describe the solution you'd like
I'd like AsyncOption.orElse and AsyncOption.orElseWith to be implemented. Their type signatures would be as follows:
// orElse: (ifNone : Async<'value option>) -> (input : Async<'value option>) -> Async<'value option>
// orElseWith: (ifNoneFunc : unit -> Async<'value option>) -> (input : Async<'value option>) -> Async<'value option>Describe alternatives you've considered
Add these functions as a local extension
Additional context
I'd gladly open a PR for this change.
Metadata
Metadata
Assignees
Labels
No labels