Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CancelSource.type
Members list
Value members
Concrete methods
Fresh, unlinked source. logger is used to record listener exceptions alongside propagation — see CancelToken.onCancel's listener contract.
Fresh, unlinked source. logger is used to record listener exceptions alongside propagation — see CancelToken.onCancel's listener contract.
Attributes
Linked source: cancelling parent cancels this one too (and carries the parent's cause through). Cancelling this source does NOT cancel the parent — scope isolation is downward-only.
Linked source: cancelling parent cancels this one too (and carries the parent's cause through). Cancelling this source does NOT cancel the parent — scope isolation is downward-only.
If parent is already cancelled, the returned source is cancelled immediately with the parent's cause.
The link is symmetric about cleanup: on child cancel (for any reason), the child deregisters from the parent's listener list so a long-lived parent doesn't accumulate stale closures from short-lived children.
Attributes
Concrete fields
Default reason string used when a source is cancelled without an explicit cause.
Default reason string used when a source is cancelled without an explicit cause.
Attributes
Reason used on linked children when the parent fires and did not store a cause.
Reason used on linked children when the parent fires and did not store a cause.