Skip to main content

now_or_never

Function now_or_never 

Source
pub fn now_or_never<T>(
    future: impl Future<Output = Result<T, ChainError>>,
) -> Result<T, ChainError>
Expand description

その場で終わる保存(redb など)を使うときに、future を待たずに1回で進める。待つものだったらエラー