Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskOption/TaskResult defaultValue and defaultWith #234

Closed
ratsclub opened this issue Nov 13, 2023 · 0 comments
Closed

TaskOption/TaskResult defaultValue and defaultWith #234

ratsclub opened this issue Nov 13, 2023 · 0 comments

Comments

@ratsclub
Copy link
Contributor

ratsclub commented Nov 13, 2023

Is your feature request related to a problem? Please describe.

It would be nice to have a TaskOption.defaultValue and TaskOption.defaultWith for them.

I'm open to implementing them myself.

Describe the solution you'd like
Just add the function for each module.

Describe alternatives you've considered
N/A

Additional context
I think this maps to the standard library behavior of having Option.defaultValue.

@ratsclub ratsclub changed the title [Task|Async][Option|Result] defaultValue and defaultWith TaskOption/TaskResult defaultValue and defaultWith Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants