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

Migrate from futures #7

Open
caspiano opened this issue Jun 15, 2020 · 1 comment
Open

Migrate from futures #7

caspiano opened this issue Jun 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@caspiano
Copy link
Contributor

Strip dependency on future.cr, potentially replace with promise.cr

@caspiano caspiano added the enhancement New feature or request label Jun 15, 2020
@watzon
Copy link

watzon commented Jan 10, 2021

Just gonna drop this as a suggestion. I created https://github.com/protoncr/async which takes the idea of futures that exist in future.cr and extends them. Also provides async/await macros which basically just wrap the body of your function in an Async::Future and executes it immediately when called.

It also has some methods from JavaScript promises like Future.all, Future.race, and Future.any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants