mgpuDrainWorkQueue function

  1. @Native<Void Function()>()>(symbol: 'mgpuDrainWorkQueue')
void mgpuDrainWorkQueue()

Blocks until every task already queued on the WebGPU worker thread has run.

Teardown ordering aid: destroying a resource an enqueued task still references frees it under that task. No-op if called from the worker thread.

Implementation

@Native<Void Function()>(symbol: 'mgpuDrainWorkQueue')
external void mgpuDrainWorkQueue();