[][src]Trait blocking_permit::Semaphorish

pub trait Semaphorish {
    fn default_new(permits: usize) -> Self;
}

Extension trait for uniform construction of the re-exported Semaphore types.

Required methods

fn default_new(permits: usize) -> Self

Construct given number of permits.

This chooses fair scheduling, if that is a supported option.

Loading content...

Implementors

impl Semaphorish for Semaphore[src]

Loading content...