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

Enable async runAppFunction callbacks #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

micimize
Copy link

Use FutureOr<void> for runAppFunction and _runZonedGuarded callback return type,
and pass runAppFunction! directly to _runZonedGuarded.

It seems that currently passing an async function to runAppFunction results in some error state, likely due to not being awaited. I'm not if there are any setup actions that need to be in the same zone but it is more intuitive to add this flexibility if possible.

I made this patch directly in the GitHub UI so I may have missed something.

Use FutureOr<void> for runAppFunction and _runZonedGuarded callback return type,
and pass runAppFunction! directly to _runZonedGuarded.
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.

1 participant