MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / daemon_wait_timeout

Function daemon_wait_timeout

src/client.rs:24–30  ·  view source on GitHub ↗

Read the daemon wait timeout from `DAEMON_WAIT_TIMEOUT_SECS`, defaulting to 5.

()

Source from the content-addressed store, hash-verified

22
23/// Read the daemon wait timeout from `DAEMON_WAIT_TIMEOUT_SECS`, defaulting to 5.
24fn daemon_wait_timeout() -> Duration {
25 std::env::var("DAEMON_WAIT_TIMEOUT_SECS")
26 .ok()
27 .and_then(|v| v.parse::<u64>().ok())
28 .map(Duration::from_secs)
29 .unwrap_or(Duration::from_secs(5))
30}
31
32/// Try to send a request to the daemon. Returns error if daemon is not running.
33pub async fn send_to_daemon(request: &DaemonRequest) -> Result<DaemonResponse> {

Callers 1

wait_for_daemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected