(executionId: string)
| 33 | const waiters = new Map<string, Deferred.Deferred<BrowserApprovalDecision>>(); |
| 34 | |
| 35 | const take = (executionId: string): Effect.Effect<BrowserApprovalDecision | null> => |
| 36 | Effect.sync(() => { |
| 37 | const response = responses.get(executionId) ?? null; |
| 38 | if (response) responses.delete(executionId); |
| 39 | return response; |
| 40 | }); |
| 41 | |
| 42 | const waitFor = (executionId: string): Effect.Effect<BrowserApprovalDecision | null> => |
| 43 | Effect.gen(function* () { |