Trait concurrency_traits::semaphore::AsyncTimeoutSemaphore [−][src]
pub unsafe trait AsyncTimeoutSemaphore: TrySemaphore { #[must_use] #[must_use] fn wait_timeout_async<'life0, 'async_trait>(
&'life0 self,
timeout: Duration
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Expand description
Required methods
#[must_use]#[must_use]fn wait_timeout_async<'life0, 'async_trait>(
&'life0 self,
timeout: Duration
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]#[must_use]fn wait_timeout_async<'life0, 'async_trait>(
&'life0 self,
timeout: Duration
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Awaits until timeout or able to decrement, returning true if decremented or false if timed out.