MCPcopy Index your code
hub / github.com/coder/mux / createDeferred

Function createDeferred

src/node/services/serverAuthService.ts:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98function createDeferred<T>(): Deferred<T> {
99 let resolve!: (value: T) => void;
100 const promise = new Promise<T>((res) => {
101 resolve = res;
102 });
103
104 return { promise, resolve };
105}
106
107function normalizeOptionalString(value: unknown): string | undefined {
108 if (typeof value !== "string") {

Callers 1

startGithubDeviceFlowMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected