refactor(snapshot): effectify SnapshotService (#17878)
This commit is contained in:
parent
fee3c196c5
commit
9e7c136de7
7 changed files with 843 additions and 684 deletions
|
|
@ -12,3 +12,7 @@ export const runtime = ManagedRuntime.make(
|
|||
export function runPromiseInstance<A, E>(effect: Effect.Effect<A, E, InstanceServices>) {
|
||||
return runtime.runPromise(effect.pipe(Effect.provide(Instances.get(Instance.directory))))
|
||||
}
|
||||
|
||||
export function disposeRuntime() {
|
||||
return runtime.dispose()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue