MCPcopy Create free account
hub / github.com/bootc-dev/bootc / send

Method send

crates/lib/src/progress_jsonl.rs:249–256  ·  view source on GitHub ↗

Send an event.

(&self, event: Event<'_>)

Source from the content-addressed store, hash-verified

247
248 /// Send an event.
249 pub(crate) async fn send(&self, event: Event<'_>) {
250 if let Err(e) = self.send_impl(event, true).await {
251 eprintln!("Failed to write to jsonl: {e}");
252 // Stop writing to fd but let process continue
253 // SAFETY: Propagating panics from the mutex here is intentional
254 let _ = self.inner.lock().await.take();
255 }
256 }
257
258 /// Send an event that can be dropped.
259 pub(crate) async fn send_lossy(&self, event: Event<'_>) {

Callers 7

test_jsonlFunction · 0.80
pull_from_preparedFunction · 0.80
stageFunction · 0.80
poll_readMethod · 0.80
unencapsulate_baseMethod · 0.80
importMethod · 0.80

Calls 1

send_implMethod · 0.80

Tested by 1

test_jsonlFunction · 0.64