MCPcopy
hub / github.com/coder/mux / queueImmediateUpdate

Method queueImmediateUpdate

src/browser/stores/GitStatusStore.ts:150–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 subscribe = this.statuses.subscribeAny;
149
150 private queueImmediateUpdate(): void {
151 if (this.immediateUpdateQueued || !this.isActive || !this.client) {
152 return;
153 }
154
155 this.immediateUpdateQueued = true;
156 queueMicrotask(() => {
157 this.immediateUpdateQueued = false;
158 this.refreshController.requestImmediate();
159 });
160 }
161
162 /**
163 * Subscribe to git status changes for a specific workspace.

Callers 1

GitStatusStoreClass · 0.95

Calls 1

requestImmediateMethod · 0.80

Tested by

no test coverage detected