MCPcopy Create free account
hub / github.com/angular/dev-infra / [kGetDispatcher]

Method [kGetDispatcher]

github-actions/browserstack/set-browserstack-env.js:8627–8638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8625 if (!dispatcher) {
8626 this[kNeedDrain] = true;
8627 this[kQueue].push({ opts, handler });
8628 this[kQueued]++;
8629 } else if (!dispatcher.dispatch(opts, handler)) {
8630 dispatcher[kNeedDrain] = true;
8631 this[kNeedDrain] = !this[kGetDispatcher]();
8632 }
8633 return !this[kNeedDrain];
8634 }
8635 [kAddClient](client) {
8636 client.on("drain", this[kOnDrain]).on("connect", this[kOnConnect]).on("disconnect", this[kOnDisconnect]).on("connectionError", this[kOnConnectionError]);
8637 this[kClients].push(client);
8638 if (this[kNeedDrain]) {
8639 queueMicrotask(() => {
8640 if (this[kNeedDrain]) {
8641 this[kOnDrain](client[kUrl], [this, client]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected