Skip to main content

create_cancellation_token

Function create_cancellation_token 

Source
pub fn create_cancellation_token() -> CancellationToken
Expand description

Create a new CancellationToken for cooperative cancellation of a download.

Pass the returned token to download (or a related entry point) and call CancellationToken::cancel to abort the in-flight download.