run static method

void run(
  1. Function callbackDispatcher
)

Runs callbackDispatcher in the current JS worker/service-worker global.

Throws on non-web platforms.

Implementation

static void run(Function callbackDispatcher) {
  throw UnsupportedError(
    'WorkmanagerWebWorker can only run inside a compiled web worker bundle.',
  );
}