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

Add idFuture and identityFuture #38

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

f-person
Copy link
Contributor

Hi! First of all, thanks for this awesome package! It's a joy to use it!
The id function is pretty useful and I find myself using it more and more, however, in some cases, you need to do something asynchronous in the first callback, and just return the same value in the second. Currently there isn't a way to do that.
In this PR I added two functions – idFuture and identityFuture, they are pretty much like their synchronous versions, but return the value, wrapped in Future.value instead.

@SandroMaglione SandroMaglione merged commit 6b74270 into SandroMaglione:main Jun 17, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants