-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement async functions #27
Comments
Thank you for your support! Do you mean something like the following? const optional: Optional<string> = Optional.ofNullable("foo");
optional.ifPresent(async (value) => console.log(value));
optional.ifPresentOrElse(async (value) => console.log(value), async () => console.log("empty")); |
Correct |
Any chance to doing this? I can also participate. |
@benkeil |
Would be very nice to have this feature, it's almost 'mandatory' for any backend developments. |
That would be very nice, any update on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, I love what you did!
It would be nice to use
async
functions in e.g.ifPresent
and wait for them withasync
The text was updated successfully, but these errors were encountered: