Skip to content

Enable async runAppFunction callbacks#205

Open
micimize wants to merge 1 commit intojhomlala:masterfrom
micimize:patch-1
Open

Enable async runAppFunction callbacks#205
micimize wants to merge 1 commit intojhomlala:masterfrom
micimize:patch-1

Conversation

@micimize
Copy link
Copy Markdown

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