We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6976fae commit b12adc3Copy full SHA for b12adc3
packages/yet_another_json_isolate/lib/src/_isolates_io.dart
@@ -8,6 +8,13 @@ import 'package:async/async.dart';
8
9
// One instance manages one isolate
10
class YAJsonIsolate {
11
+ YAJsonIsolate({
12
+ this.debugName,
13
+ });
14
+
15
+ /// The debug name used for the isolate spawned by this instance.
16
+ final String? debugName;
17
18
final _receivePort = ReceivePort();
19
late final SendPort _sendPort;
20
final _createdIsolate = Completer<void>();
@@ -26,6 +33,7 @@ class YAJsonIsolate {
26
33
_receivePort.sendPort,
27
34
onExit: _receivePort.sendPort,
28
35
onError: _receivePort.sendPort,
36
+ debugName: debugName,
29
37
);
30
38
_sendPort = await _events.next;
31
39
_createdIsolate.complete();
0 commit comments