(effect: Effect.Effect<HostRegistration, never, Scope.Scope>)
| 27 | |
| 28 | // Run a hook registration on the plugin scope and resolve once it is registered. |
| 29 | const register = (effect: Effect.Effect<HostRegistration, never, Scope.Scope>): Promise<Registration> => |
| 30 | Effect.runPromiseWith(context)(Scope.provide(scope)(effect)).then((registration) => ({ |
| 31 | dispose: () => Effect.runPromiseWith(context)(registration.dispose), |
| 32 | })) |
| 33 | |
| 34 | const run = (effect: Effect.Effect<void>) => Effect.runPromiseWith(context)(effect) |
| 35 |
no outgoing calls
no test coverage detected