mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-30 20:44:31 +00:00
refactor: use Effect.ignore over exit + asVoid
This commit is contained in:
parent
74373f85c7
commit
d9252a09dd
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ export const layer: Layer.Layer<Service, never, Project.Service> = Layer.effect(
|
|||
yield* Effect.gen(function* () {
|
||||
yield* Effect.logInfo("reloading instance", { directory })
|
||||
if (previous) {
|
||||
yield* Deferred.await(previous.deferred).pipe(Effect.exit, Effect.asVoid)
|
||||
yield* Deferred.await(previous.deferred).pipe(Effect.ignore)
|
||||
yield* Effect.promise(() => disposeInstance(directory))
|
||||
yield* emitDisposed({ directory, project: input.project?.id })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue