getQueuedMicrotasks method

Future<QueuedMicrotasks> getQueuedMicrotasks(
  1. String isolateId
)

The getQueuedMicrotasks RPC returns a snapshot containing information about the microtasks that were queued in the specified isolate when the snapshot was taken.

If the VM was not started with the flag --profile-microtasks, this RPC will return RPCError 100 "Feature is disabled".

If an exception has gone unhandled in the specified isolate, this RPC will return RPCError 115 "Cannot get queued microtasks".

If custom dart:async Zones are used to redirect microtasks to be queued elsewhere than the root dart:async Zone's microtask queue, information about those redirected microtasks will not be returned by this function.

If isolateId refers to an isolate that has exited, then the Collected Sentinel will be returned.

See QueuedMicrotasks.

Implementation

Future<QueuedMicrotasks> getQueuedMicrotasks(String isolateId) =>
    _call('getQueuedMicrotasks', {'isolateId': isolateId});