Skip to content

Instantly share code, notes, and snippets.

@kwalrath
Created August 30, 2019 21:09
Show Gist options
  • Save kwalrath/336c61f3163ca0d73385212f0f925a51 to your computer and use it in GitHub Desktop.
Save kwalrath/336c61f3163ca0d73385212f0f925a51 to your computer and use it in GitHub Desktop.
void main() {
final myFuture = Future(() {
print('Creating the future.'); // Prints second.
return 12;
});
print('Done with main().'); // Prints first.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment