Created
July 24, 2020 09:00
-
-
Save creativecreatorormaybenot/dd141f641713c074baacba9e45115c59 to your computer and use it in GitHub Desktop.
microtasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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