We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf35513 commit c0137ebCopy full SHA for c0137eb
lib/src/node/worker_threads.dart
@@ -0,0 +1,22 @@
1
+// Copyright 2017 Google Inc. Use of this source code is governed by an
2
+// MIT-style license that can be found in the LICENSE file or at
3
+// https://opensource.org/licenses/MIT.
4
+
5
+import 'package:js/js.dart';
6
7
+class WorkerOptions extends Object {
8
+}
9
10
+@JS("worker_threads")
11
+class Worker {
12
+ external Worker on(String message, Function callback);
13
14
+ external factory Worker(String filename, WorkerOptions options);
15
16
17
18
+class ParentPort {
19
+ external ParentPort postMessage(Object value,
20
+ {List transferList = const []});
21
22
0 commit comments