MCPcopy Create free account
hub / github.com/SSheldon/rust-dispatch / enter

Method enter

src/group.rs:28–30  ·  view source on GitHub ↗

Indicates that a closure has entered self, and increments the current count of outstanding tasks. Returns a `GroupGuard` that should be dropped when the closure leaves self, decrementing the count.

(&self)

Source from the content-addressed store, hash-verified

26 /// count of outstanding tasks. Returns a `GroupGuard` that should be
27 /// dropped when the closure leaves self, decrementing the count.
28 pub fn enter(&self) -> GroupGuard {
29 GroupGuard::new(self)
30 }
31
32 /// Submits a closure asynchronously to the given `Queue` and associates it
33 /// with self.

Callers 2

test_groupFunction · 0.80
test_afterFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_groupFunction · 0.64
test_afterFunction · 0.64