MCPcopy Create free account
hub / github.com/base/base / wait

Method wait

acceptance/src/check.rs:766–770  ·  view source on GitHub ↗

Sleeps for one polling interval, returning false at the deadline.

(&self, deadline: Instant)

Source from the content-addressed store, hash-verified

764
765 /// Sleeps for one polling interval, returning false at the deadline.
766 pub async fn wait(&self, deadline: Instant) -> bool {
767 let Some(remaining) = deadline.checked_duration_since(Instant::now()) else { return false };
768 tokio::time::sleep(self.poll.min(remaining)).await;
769 Instant::now() < deadline
770 }
771
772 /// Resolves a logical role without exposing its URL in errors.
773 pub fn endpoint<'a>(map: &'a BTreeMap<String, String>, role: &str) -> Result<&'a str> {

Callers 2

progressMethod · 0.45
convergeMethod · 0.45

Calls 1

minMethod · 0.80

Tested by

no test coverage detected