(
effect: Effect.Effect<A, E, R>,
options?: Effect.RunOptions & {
readonly onExit: (exit: Exit.Exit<A, E | ER>) => void
}
)
| 335 | }, |
| 336 | dispose(): Promise<void> { |
| 337 | return Effect.runPromise(self.disposeEffect) |
| 338 | }, |
| 339 | [Symbol.asyncDispose](): Promise<void> { |
| 340 | return self.dispose() |
| 341 | }, |
| 342 | disposeEffect: Effect.suspend(() => { |
| 343 | ;(self as Mutable<ManagedRuntime<R, ER>>).contextEffect = Effect.die("ManagedRuntime disposed") |
| 344 | self.cachedContext = undefined |
| 345 | return Scope.close(self.scope, Exit.void) |
| 346 | }), |
| 347 | runFork<A, E>(effect: Effect.Effect<A, E, R>, options?: Effect.RunOptions): Fiber.Fiber<A, E | ER> { |
| 348 | return self.cachedContext === undefined ? |
| 349 | Effect.runFork(provide(self, effect), mergeRunOptions(options)) : |
nothing calls this directly
no test coverage detected
searching dependent graphs…