Skip to content

Instantly share code, notes, and snippets.

@creativecreatorormaybenot
Created July 24, 2020 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creativecreatorormaybenot/dd141f641713c074baacba9e45115c59 to your computer and use it in GitHub Desktop.
Save creativecreatorormaybenot/dd141f641713c074baacba9e45115c59 to your computer and use it in GitHub Desktop.
microtasks
void main() {
Future(() => print('future 1'));
Future(() => print('future 2'));
// Microtasks will be executed before futures.
Future.microtask(() => print('microtask 1'));
Future.microtask(() => print('microtask 2'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment