Use forkScoped for background upstream refresh
- replace `Effect.forkDetach` with `Effect.forkScoped` when refreshing checked-out branch upstream refs - keep checkout responsive while ensuring the background task stays tied to scope lifecycle
This commit is contained in:
1 parent
96bf54e293
commit
991dd05e72
1 file changed
+1
-1
@@ -1162,7 +1162,7 @@ const makeGitCore = Effect.gen(function* () {
|
||||
});
|
||||
|
||||
// Refresh upstream refs in the background so checkout remains responsive.
|
||||
yield* Effect.forkDetach(
|
||||
yield* Effect.forkScoped(
|
||||
refreshCheckedOutBranchUpstream(input.cwd).pipe(Effect.catch(() => Effect.void)),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user