Abortable trigger wraps an Arc<AtomicBool>, which can be cloned to signal task terminating using an atomic bool.

let abortable = Abortable::default();
let result = my_task(abortable).await?;
// ... elsewhere
abortable.abort();

Constructors

Methods

  • Returns void

  • Returns void

  • Returns void

  • Returns boolean

  • Returns void

Generated using TypeDoc