Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions timely/src/dataflow/operators/ok_err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ use crate::Data;
/// Extension trait for `Stream`.
pub trait OkErr<S: Scope, D: Data> {
/// Takes one input stream and splits it into two output streams.
/// For each record, the supplied closure is called with a reference to
/// the data and its time. If it returns true, the record will be sent
/// to the second returned stream, otherwise it will be sent to the first.
/// For each record, the supplied closure is called with the data.
/// If it returns `Ok(x)`, then `x` will be sent
/// to the first returned stream; otherwise, if it returns `Err(e)`,
/// then `e` will be sent to the second.
///
/// If the result of the closure only depends on the time, not the data,
/// `branch_when` should be used instead.
Expand Down