Private
isIndicates whether the operation has been cancelled.
Optional
onCallback function to execute when the operation is cancelled.
Cancels the operation and optionally resets the token after cancellation.
Whether to reset the token after cancellation.
Checks if a cancellation has been requested.
True if cancellation is requested, false otherwise.
Resets the cancellation token to its initial state.
Class representing a cancellation token for managing asynchronous operations.