()
| 40 | } |
| 41 | |
| 42 | export function getSchedulingContext(): SchedulingContext { |
| 43 | const ctx = (globalThis as unknown as GlobalWithCtx)[CTX_KEY]; |
| 44 | if (!ctx) |
| 45 | throw new Error( |
| 46 | "@agent-native/scheduling: context not initialized. Call setSchedulingContext(...) at startup.", |
| 47 | ); |
| 48 | return ctx; |
| 49 | } |
no outgoing calls
no test coverage detected