Skip to main content

## register

# Function register

Source

    pub fn register(download_id: i64) -> Arc<AtomicBool> ⓘ

Expand description

Register `download_id` as in-flight and hand back its stop flag.

Called by the worker as it starts. A previous flag for the same id is replaced, so a download that is paused and later resumed does not inherit the set flag from its last run and stop immediately.