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

Method isForegroundAwaiting

src/node/services/taskService.ts:4030–4033  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

4028 }
4029
4030 private isForegroundAwaiting(workspaceId: string): boolean {
4031 const count = this.foregroundAwaitCountByWorkspaceId.get(workspaceId);
4032 return typeof count === "number" && count > 0;
4033 }
4034
4035 private startForegroundAwait(workspaceId: string): () => void {
4036 assert(workspaceId.length > 0, "startForegroundAwait: workspaceId must be non-empty");

Callers 2

isActiveWorkspaceTurnMethod · 0.95
countActiveAgentTasksMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected