Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented May 19, 2022

Fixes flutter/flutter#104084 by avoid a Timer.

@jonahwilliams jonahwilliams marked this pull request as ready for review May 19, 2022 19:49
@jonahwilliams jonahwilliams requested a review from zanderso May 19, 2022 19:49
}) async {
// Delay compilation without creating a timer, which interacts poorly with the
// flutter test framework. See: https://github.com/flutter/flutter/issues/104084
await null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this different from Future.microtask(FragmentProgram._(...))?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yeah, its basically the same thing.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! lgtm

@jonahwilliams jonahwilliams added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label May 19, 2022
@fluttergithubbot fluttergithubbot merged commit 9e2366a into flutter:main May 19, 2022
@jonahwilliams jonahwilliams deleted the fix_async branch May 19, 2022 21:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2022
houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests fails with error:Unable to load asset: shaders/ink_sparkle.frag when using ThemeData(useMaterial3: true)

3 participants