/// Creates a new futures-aware shared semaphore.
///
/// See `GenericSharedSemaphore` for more information.
Creates a new futures-aware shared semaphore.
See `GenericSharedSemaphore` for more information.
Creates a new futures - aware shared semaphore . See ` GenericSharedSemaphore ` for more information .
pub fn new(
            is_fair: bool,
            permits: usize,
        ) -> GenericSharedSemaphore<MutexType> {
            GenericSharedSemaphore::<MutexType> {
                state: Arc::new(LockApiMutex::new(SemaphoreState::new(
                    is_fair, permits,
                ))),
            }
        }
pub fn new ( is_fair : bool , permits : usize , ) -> GenericSharedSemaphore < MutexType > { GenericSharedSemaphore :: < MutexType > { state : Arc :: new ( LockApiMutex :: new ( SemaphoreState :: new ( is_fair , permits , ) ) ) , } }
Creates a new futures-aware shared semaphore.
Creates a new futures - aware shared semaphore .
is_fair
bool
permits
usize