MCPcopy Create free account
hub / github.com/NthTensor/Forte / new

Method new

src/latch.rs:66–71  ·  view source on GitHub ↗

Creates a new latch backed by the provided semaphore.

(semaphore: &'static Semaphore)

Source from the content-addressed store, hash-verified

64/// The result of a [`Latch::check`]: whether the latch has been set, and if so
65/// whether it was set with an error.
66pub enum Status {
67 /// The latch has not been set.
68 Pending,
69 /// The latch was set without an error.
70 Ok,
71 /// The latch was set with an error.
72 Error,
73}
74

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected