Skip to content

ScheduledTask.CancelAsyncCore(string?, CancellationToken)

CancelAsyncCore(string?, CancellationToken)

abstract
protected abstract ValueTask CancelAsyncCore(string? reason, CancellationToken cancellationToken)
Asks the host to cancel the task carrying reason, or no reason when it is null.

Parameters

reasonstring?
cancellationTokenCancellationToken