Skip to main content

retry_in_use

Function retry_in_use 

Source
pub fn retry_in_use<T>(
    wait: Duration,
    open: impl FnMut() -> Result<T, NodeError>,
) -> Result<T, NodeError>
Expand description

Calls open, which opens a library, again while another program has the library open, for up to wait: NodeError::in_use says so.

ยงErrors

Returns the error of the last call.