MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / join_reader

Function join_reader

atomic-repository/src/change_source/process.rs:127–134  ·  view source on GitHub ↗
(
    thread: thread::JoinHandle<std::io::Result<Vec<u8>>>,
)

Source from the content-addressed store, hash-verified

125}
126
127fn join_reader(
128 thread: thread::JoinHandle<std::io::Result<Vec<u8>>>,
129) -> Result<Vec<u8>, ChangeSourceError> {
130 thread
131 .join()
132 .map_err(|_| ChangeSourceError::Unavailable("process output reader panicked".into()))?
133 .map_err(|error| ChangeSourceError::Unavailable(error.to_string()))
134}

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected