Skip to content

Commit 98b175b

Browse files
authored
Merge pull request #4160 from lenguyenthanh/patch-1
Fix joinWithNever docs
2 parents 921c69c + 7413d4f commit 98b175b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/typeclasses/spawn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ In English, the semantics of this are as follows:
231231

232232
- If the child fiber completed successfully, produce its result
233233
- If it errored, re-raise the error within the current fiber
234-
- If it canceled, attempt to self-cancel, and if the self-cancelation fails, **deadlock**
234+
- If it canceled, the caller is indefinitely suspended without termination (a.k.a. **deadlock**)
235235

236236
Sometimes this is an appropriate semantic, and the cautiously-verbose `joinWithNever` function implements it for you. It is worth noting that this semantic was the *default* in Cats Effect 2 (and in fact, no other semantic was possible).
237237

0 commit comments

Comments
 (0)