summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-09 13:52:58 -0400
committerGitHub <[email protected]>2026-04-09 13:52:58 -0400
commit34b979265427444d7e311773d6957221bd092a32 (patch)
tree1a2bfe4057896457d1fd2871cc1b021a9c0fb123
parent537160dbc0cfa9e2eb1bc3ea5cf86743a15f8d90 (diff)
downloadopencode-34b979265427444d7e311773d6957221bd092a32.tar.gz
opencode-34b979265427444d7e311773d6957221bd092a32.zip
delete unused withALS method (#21723)
-rw-r--r--packages/opencode/src/effect/instance-state.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/opencode/src/effect/instance-state.ts b/packages/opencode/src/effect/instance-state.ts
index cc5901fb5..a379d3afc 100644
--- a/packages/opencode/src/effect/instance-state.ts
+++ b/packages/opencode/src/effect/instance-state.ts
@@ -73,10 +73,4 @@ export namespace InstanceState {
Effect.gen(function* () {
return yield* ScopedCache.invalidate(self.cache, yield* directory)
})
-
- /**
- * Effect finalizers run on the fiber scheduler after the original async
- * boundary, so ALS reads like Instance.directory can be gone by then.
- */
- export const withALS = <T>(fn: () => T) => Effect.map(context, (ctx) => Instance.restore(ctx, fn))
}