Method ExecuteAsync
ExecuteAsync(CancellationToken)
Executes the action with support for parent cancellation. The action can be cancelled (if supported) by calling the Cancel method either on the action itself or on the parent.
Declaration
public Task ExecuteAsync(CancellationToken parentToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | parentToken | The cancellation token which will be monitored. Execution will stop if cancellation is requested |
Returns
Type | Description |
---|---|
Task |