( context: TeammateContext, fn: () => T, )
| 57 | * @returns The return value of fn |
| 58 | */ |
| 59 | export function runWithTeammateContext<T>( |
| 60 | context: TeammateContext, |
| 61 | fn: () => T, |
| 62 | ): T { |
| 63 | return teammateContextStorage.run(context, fn) |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Check if current execution is within an in-process teammate. |
no test coverage detected