spawn_groups 1.1.0

Structured concurrency construct written in Rust, for Rustaceans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Task Priority
///
/// Spawn groups uses it to rank the importance of their spawned tasks and order of returned values only when waited for
/// that is when the ``wait_for_all`` or ``wait_non_async`` method is called
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Default)]
pub enum Priority {
    BACKGROUND = 0,
    LOW,
    UTILITY,
    #[default]
    MEDIUM,
    HIGH,
    USERINITIATED,
}