Skip to main content

run

Function run 

Source
pub(crate) fn run(
    job: Job,
    events: &Receiver<Event>,
    connect: Sender<Event>,
    report: &impl Fn(Report) -> Result<(), Abandoned>,
) -> Result<(), Abandoned>
Expand description

Runs job, handling events until it ends, and sending each step to report. connect is where its connections send their events.

ยงErrors

Abandoned once the app is gone, which stops the download early.