MCPcopy Index your code
hub / github.com/SSheldon/rust-dispatch / suspend

Method suspend

src/queue.rs:281–283  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
286unsafe impl Sync for Queue { }

Callers 1

test_suspendFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_suspendFunction · 0.64