Skip to content

Commit 34b9792

Browse files
authored
delete unused withALS method (#21723)
1 parent 537160d commit 34b9792

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/opencode/src/effect/instance-state.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,4 @@ export namespace InstanceState {
7373
Effect.gen(function* () {
7474
return yield* ScopedCache.invalidate(self.cache, yield* directory)
7575
})
76-
77-
/**
78-
* Effect finalizers run on the fiber scheduler after the original async
79-
* boundary, so ALS reads like Instance.directory can be gone by then.
80-
*/
81-
export const withALS = <T>(fn: () => T) => Effect.map(context, (ctx) => Instance.restore(ctx, fn))
8276
}

0 commit comments

Comments
 (0)