Skip to content

Make sure CancellationToken is not used incorrectly across processes#70

Merged
lukas-vonblon merged 1 commit intomainfrom
CancellationToken
Feb 24, 2026
Merged

Make sure CancellationToken is not used incorrectly across processes#70
lukas-vonblon merged 1 commit intomainfrom
CancellationToken

Conversation

@pgrawehr
Copy link
Copy Markdown
Collaborator

The standard types CancellationToken and CancellationTokenSource can't be used in a remote call, because their underlying infrastructure is not serializable. With this PR, attempting to do so causes an immediate exception (except if the CancellationToken is set to None or cancelled already)

The standard types CancellationToken and CancellationTokenSource can't be
used in a remote call, because their underlying infrastructure is not serializable.
@lukas-vonblon lukas-vonblon merged commit 03a006d into main Feb 24, 2026
1 check passed
@lukas-vonblon lukas-vonblon deleted the CancellationToken branch February 25, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants