( f: (runtime: Runtime.Runtime<never>, effect: Effect.Effect<any, any>, ...args: Args) => Return )
| 27 | import * as supervisor_ from "./supervisor.js" |
| 28 | |
| 29 | const makeDual = <Args extends Array<any>, Return>( |
| 30 | f: (runtime: Runtime.Runtime<never>, effect: Effect.Effect<any, any>, ...args: Args) => Return |
| 31 | ): { |
| 32 | <R>(runtime: Runtime.Runtime<R>): <A, E>(effect: Effect.Effect<A, E, R>, ...args: Args) => Return |
| 33 | <R, A, E>(runtime: Runtime.Runtime<R>, effect: Effect.Effect<A, E, R>, ...args: Args): Return |
| 34 | } => |
| 35 | function(this: any) { |
| 36 | if (arguments.length === 1) { |
| 37 | const runtime = arguments[0] |
| 38 | return (effect: any, ...args: Args) => f(runtime, effect, ...args) |
| 39 | } |
| 40 | return f.apply(this, arguments as any) |
| 41 | } as any |
| 42 | |
| 43 | /** @internal */ |
| 44 | export const unsafeFork: { |
no test coverage detected
searching dependent graphs…