MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / handleIsolateEvent

Function handleIsolateEvent

src/debug/dart_debug_impl.ts:1379–1391  ·  view source on GitHub ↗
(event: VMEvent)

Source from the content-addressed store, hash-verified

1377
1378 // IsolateStart, IsolateRunnable, IsolateExit, IsolateUpdate, ServiceExtensionAdded
1379 public async handleIsolateEvent(event: VMEvent): Promise<void> {
1380 // Don't process any events while the debugger is still running init code.
1381 await this.debuggerInit;
1382
1383 const kind = event.kind;
1384 if (kind === "IsolateStart" || kind === "IsolateRunnable") {
1385 await this.threadManager.registerThread(event.isolate!, kind);
1386 } else if (kind === "IsolateExit") {
1387 this.threadManager.handleIsolateExit(event.isolate!);
1388 } else if (kind === "ServiceExtensionAdded") {
1389 this.handleServiceExtensionAdded(event);
1390 }
1391 }
1392
1393 // Service
1394 public async handleServiceEvent(event: VMEvent) {

Callers

nothing calls this directly

Calls 2

registerThreadMethod · 0.80
handleIsolateExitMethod · 0.80

Tested by

no test coverage detected