task-system 0.1.0

A system that manage cancelable task.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![warn(missing_docs)]
#![doc = include_str!("../Readme.md")]

pub use crate::sync_queue::{TaskSender, TaskSystem};

mod sender;
mod sync_queue;

/// A trait for objects that can be cancelled.
pub trait Cancellable {
    /// Cancel the object.
    fn cancel(&mut self);
}