Suspends the invocation of blocks on self and returns a `SuspendGuard` that can be dropped to resume. The suspension occurs after completion of any blocks running at the time of the call. Invocation does not resume until all `SuspendGuard`s have been dropped.
(&self)
| 279 | /// time of the call. |
| 280 | /// Invocation does not resume until all `SuspendGuard`s have been dropped. |
| 281 | pub fn suspend(&self) -> SuspendGuard { |
| 282 | SuspendGuard::new(self) |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | unsafe impl Sync for Queue { } |