MCPcopy Create free account
hub / github.com/RetypeOS/parcode / into_inner

Method into_inner

src/io.rs:102–107  ·  view source on GitHub ↗

Consumes the `SeqWriter` and returns the inner buffered writer. This allows avoiding Mutex locking overhead in synchronous contexts where exclusive ownership is guaranteed.

(self)

Source from the content-addressed store, hash-verified

100 /// This allows avoiding Mutex locking overhead in synchronous contexts where
101 /// exclusive ownership is guaranteed.
102 pub fn into_inner(self) -> Result<BufWriter<W>> {
103 let state = self.inner.into_inner().map_err(|_| {
104 ParcodeError::Internal("Writer mutex poisoned during consumption".into())
105 })?;
106 Ok(state.writer)
107 }
108}
109
110#[cfg(not(target_arch = "wasm32"))]

Callers 3

signal_errorMethod · 0.80
capture_root_resultMethod · 0.80
execute_graph_parallelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected