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

Async support #151

Open
petrnymsa opened this issue Nov 2, 2023 · 2 comments
Open

Async support #151

petrnymsa opened this issue Nov 2, 2023 · 2 comments
Labels
enhancement New feature or request needs-triage Issue has to be triaged first

Comments

@petrnymsa
Copy link
Member

It would be nice to support async mapping, such as "custom" on Field can return Future.

This proposal needs to be specified

@petrnymsa petrnymsa added enhancement New feature or request needs-triage Issue has to be triaged first labels Nov 2, 2023
@tenhobi
Copy link
Member

tenhobi commented Nov 2, 2023

This should be quite easy I hope. Just check whether the function is async and if true, add an await in front of it.

BUT we would need an async version for all of convert, tryConvert, ... Damn, probably even all the functions that use the one mapping...

The issue here is that async is contagious.

@tenhobi
Copy link
Member

tenhobi commented Nov 2, 2023

Can we somehow process futures synchronously?

I found https://api.dart.dev/stable/2.3.1/dart-cli/waitFor.html which should work in CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage Issue has to be triaged first
Projects
None yet
Development

No branches or pull requests

2 participants