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

Method shutdownAll

src/node/utils/oauthFlowManager.ts:210–213  ·  view source on GitHub ↗

* Shut down all active flows — resolves each with an error. * * Mirrors the `dispose` pattern where services iterate all flows * and finish them with `Err("App shutting down")`.

()

Source from the content-addressed store, hash-verified

208 * and finish them with `Err("App shutting down")`.
209 */
210 async shutdownAll(): Promise<void> {
211 const flowIds = [...this.flows.keys()];
212 await Promise.all(flowIds.map((id) => this.finish(id, Err("App shutting down"))));
213 }
214}

Callers 4

disposeMethod · 0.80
disposeMethod · 0.80
disposeMethod · 0.80

Calls 2

finishMethod · 0.95
ErrFunction · 0.90

Tested by

no test coverage detected