Skip to content

Commit 4932cd6

Browse files
authored
fix incorrect description of Effect.async interruption cleanup (#1278)
1 parent b7cc4ad commit 4932cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/src/content/docs/docs/getting-started/creating-effects.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Effect.runPromise(program).then(console.log) // Output: 1
437437

438438
### Advanced Usage
439439

440-
For more advanced use cases, `resume` can optionally return an `Effect` that will be executed if the fiber running this effect is interrupted. This can be useful in scenarios where you need to handle resource cleanup if the operation is interrupted.
440+
For more advanced use cases, the callback passed to Effect.async may return an Effect that will be executed if the fiber running this effect is interrupted. This can be used to perform cleanup when the operation is cancelled.
441441

442442
**Example** (Handling Interruption with Cleanup)
443443

0 commit comments

Comments
 (0)