mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
fix: delay exiting microbenchmark (#176477)
Give the collecting process a chance to catch Done
This commit is contained in:
parent
b3ecbb9034
commit
bd81ae6f02
@ -119,5 +119,12 @@ Future<void> main() async {
|
||||
}
|
||||
|
||||
print('\n\n╡ ••• Done ••• ╞\n\n');
|
||||
|
||||
// Ensure stdout buffers are flushed so the collecting process gets Done
|
||||
await stdout.flush();
|
||||
|
||||
// Now we're just being paranoid here and letting the process churn through
|
||||
// log lines before handling the exit code.
|
||||
await Future<void>.delayed(const Duration(seconds: 5));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user