Skip to content

Async/Await/Futures #49

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

Closed
vaind opened this issue Oct 22, 2019 · 4 comments · Fixed by #228
Closed

Async/Await/Futures #49

vaind opened this issue Oct 22, 2019 · 4 comments · Fixed by #228
Labels
question How to do something/general question
Milestone

Comments

@vaind
Copy link
Contributor

vaind commented Oct 22, 2019

Looking at some other dart code I've got an impression the API should be asynchronous (returning Futures). Thoughts?

@vaind vaind added the question How to do something/general question label Oct 22, 2019
@Buggaboo
Copy link
Contributor

This was mentioned before here.

I was thinking of starting on this, after we've tackled other high-priority issues.

@vaind
Copy link
Contributor Author

vaind commented Oct 24, 2019

The comment mentioned C async ops, which are only a part of the picture, and I'm not sure they can be used now with futures because there's currently no way to tell if the operation has finished.

The main goal I had in mind with raising this issue question was first to discuss whether it makes sense to change the standard Box APIs, like get, put, delete, etc to returning Futures.

@Buggaboo
Copy link
Contributor

The comment mentioned C async ops, which are only a part of the picture, and I'm not sure they can be used now with futures because there's currently no way to tell if the operation has finished.

The main goal I had in mind with raising this issue question was first to discuss whether it makes sense to change the standard Box APIs, like get, put, delete, etc to returning Futures.

How about the observer ops? Could those help?

@softkot
Copy link

softkot commented Jul 14, 2020

Async methods like find() is a highly required feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question How to do something/general question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants