I'm wondering if a cancellation token, which was used to cancel an operation, can be reused for another operation or if it becomes invalid after being canceled once.
7
answers
Giulia
Fri Feb 28 2025
BTCC, a leading cryptocurrency exchange, offers a range of services including spot, futures, and wallet options.
KimchiQueenCharmingKiss
Fri Feb 28 2025
Once the IsCancellationRequested property of the token is set to true, it signifies that the operation should be canceled.
Dario
Fri Feb 28 2025
This property cannot be reversed or reset to false after it has been set to true.
ShintoBlessing
Fri Feb 28 2025
A cancellation token is designed to correspond to a single "cancelable operation" within a program.
Stardust
Fri Feb 28 2025
Due to this behavior, cancellation tokens are not intended for reuse.