Struct semaphore::ShutdownHandle [] [src]

pub struct ShutdownHandle<T> { /* fields omitted */ }

Handle representing the shutdown process of a semaphore, allowing for extraction of the underlying resource.

Returned from Semaphore::shutdown.

Methods

impl<T> ShutdownHandle<T>
[src]

[src]

Block until all access has been released to the semaphore, and extract the underlying resource.

When Semaphore::shutdown has been called multiple times, only the first shutdown handle will return the resource. All others will return None.