File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ import '../worker_dispatcher.dart';
12
12
13
13
void main (List <String > args) {
14
14
if (parseOptions (args)) {
15
+ // The option `gracefulShutdown: false` means exit the process immediately
16
+ // without waiting for child isolates to shutdown. Dart VM does not need to
17
+ // wait as it does not have race condition issues between communication and
18
+ // worker shutdown in NodeJS.
19
+ //
20
+ // Because `gracefulShutdown` only gracefully terminates the worker that it
21
+ // does not wait for inflight requests to finish, there is no behavior
22
+ // difference to the end users.
15
23
WorkerDispatcher (
16
24
StreamChannel .withGuarantees (stdin, stdout, allowSinkErrors: false )
17
25
.transform (lengthDelimited),
You can’t perform that action at this time.
0 commit comments