MCPcopy Create free account
hub / github.com/Noumena-Network/code / write_json_line

Function write_json_line

rust/py_repl_host/src/main.rs:242–246  ·  view source on GitHub ↗
(writer: &mut W, value: &T)

Source from the content-addressed store, hash-verified

240}
241
242fn write_json_line<W: Write, T: Serialize>(writer: &mut W, value: &T) -> io::Result<()> {
243 serde_json::to_writer(&mut *writer, value)?;
244 writer.write_all(b"\n")?;
245 writer.flush()
246}
247
248fn spawn_kernel() -> io::Result<KernelProcess> {
249 let python = resolve_python_executable()?;

Callers 2

relay_execFunction · 0.85
write_exec_resultFunction · 0.85

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected