Skip to content

Instantly share code, notes, and snippets.

@mj-hd
Created November 5, 2021 02:20
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 mj-hd/d24ceef3b586893e0857b05d4ce319f4 to your computer and use it in GitHub Desktop.
Save mj-hd/d24ceef3b586893e0857b05d4ce319f4 to your computer and use it in GitHub Desktop.
dart_future_error.dart
void main() async {
final error = Future<void>.error(Error());
// この行を入れると、Uncaught Errorが2つでる
// await Future.delayed(Duration.zero);
await error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment