Method ResumeAsync
| Edit this page View SourceResumeAsync(CancellationToken)
Resumes the download from the last position.
Declaration
public Task ResumeAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | Cancellation token for resuming the download. Note that once download has started, use CancelAsync() to cancel an active download. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
If the task isn't resumable, the download will start over, and if it is already running, this is a no-op.
Exceptions
| Type | Condition |
|---|---|
| TaskCanceledException | Thrown if the download has already been cancelled. |