MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / write_message_with_timeout

Function write_message_with_timeout

src/diagnostics/lsp/client.rs:358–371  ·  view source on GitHub ↗
(
    stdin: &mut tokio::process::ChildStdin,
    value: Value,
    timeout: Duration,
)

Source from the content-addressed store, hash-verified

356}
357
358async fn write_message_with_timeout(
359 stdin: &mut tokio::process::ChildStdin,
360 value: Value,
361 timeout: Duration,
362) -> Result<()> {
363 tokio::time::timeout(timeout, write_message(stdin, value))
364 .await
365 .map_err(|_| TraceDecayError::Config {
366 message: format!(
367 "LSP message write timed out after {} ms",
368 timeout.as_millis()
369 ),
370 })?
371}
372
373fn refresh_timed_out(timeouts: LspRefreshTimeouts) -> TraceDecayError {
374 TraceDecayError::Config {

Callers 2

start_with_timeoutsMethod · 0.85

Calls 1

write_messageFunction · 0.70

Tested by

no test coverage detected