fedimint_client::oplog

Function caching_operation_update_stream

Source
pub fn caching_operation_update_stream<'a, U, S>(
    db: Database,
    operation_id: OperationId,
    stream: S,
) -> BoxStream<'a, U>
where U: Clone + Serialize + Debug + MaybeSend + MaybeSync + 'static, S: Stream<Item = U> + MaybeSend + 'a,
Expand description

Wraps an operation update stream such that the last update before it closes is tried to be written to the operation log entry as its outcome.