Created
August 20, 2022 09:57
-
-
Save mym0404/868cdd28cad4f30bd223e01e5d5c5589 to your computer and use it in GitHub Desktop.
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
import 'dart:isolate'; | |
printIsolateName() { | |
print(Isolate.current.debugName); | |
} | |
void main() async { | |
printIsolateName(); // main | |
Future.delayed(Duration(seconds: 0)).then((_) { | |
printIsolateName(); // main | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment