typescript-optional
typescript-optional copied to clipboard
Implement async functions
First of all, I love what you did!
It would be nice to use async functions in e.g. ifPresent and wait for them with async
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 Sorry for no updates... I welcome your participation.
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?