ソースを参照

delete unused withALS method (#21723)

Kit Langton 7 ヶ月 前
親
コミット
34b9792654
1 ファイル変更、0 行追加、6 行削除
  1. 0 6
      packages/opencode/src/effect/instance-state.ts

+ 0 - 6
packages/opencode/src/effect/instance-state.ts

@@ -73,10 +73,4 @@ export namespace InstanceState {
     Effect.gen(function* () {
     Effect.gen(function* () {
       return yield* ScopedCache.invalidate(self.cache, yield* directory)
       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))
 }
 }