(workspace: WorkspaceV2.ID | undefined, fn: () => R)
| 12 | } |
| 13 | |
| 14 | function restoreWorkspace<R>(workspace: WorkspaceV2.ID | undefined, fn: () => R): R { |
| 15 | if (workspace !== undefined) return WorkspaceContext.restore(workspace, fn) |
| 16 | return fn() |
| 17 | } |
| 18 | |
| 19 | function captureSync() { |
| 20 | const fiber = Fiber.getCurrent() |
no test coverage detected