refactor(snapshot): effectify SnapshotService (#17878)

This commit is contained in:
Kit Langton 2026-03-17 21:04:16 -04:00 committed by GitHub
commit 9e7c136de7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 843 additions and 684 deletions

View file

@ -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()
}