Join¶
See also
- Official ReactiveX documentation: Join
-
Observable.
join
(right, left_duration_selector, right_duration_selector, result_selector)¶ Correlates the elements of two sequences based on overlapping durations.
Keyword arguments: right – The right observable sequence to join elements for. left_duration_selector – A function to select the duration (expressed
as an observable sequence) of each element of the left observable sequence, used to determine overlap.- right_duration_selector – A function to select the duration (expressed
- as an observable sequence) of each element of the right observable sequence, used to determine overlap.
- result_selector – A function invoked to compute a result element for
- any two overlapping elements of the left and right observable sequences. The parameters passed to the function correspond with the elements from the left and right source sequences for which overlap occurs.
Return an observable sequence that contains result elements computed from source elements that have an overlapping duration.
-
Observable.
group_join
(right, left_duration_selector, right_duration_selector, result_selector)¶ Correlates the elements of two sequences based on overlapping durations, and groups the results.
Keyword arguments: right – The right observable sequence to join elements for. left_duration_selector – A function to select the duration (expressed
as an observable sequence) of each element of the left observable sequence, used to determine overlap.- right_duration_selector – A function to select the duration (expressed
- as an observable sequence) of each element of the right observable sequence, used to determine overlap.
- result_selector – A function invoked to compute a result element for
- any element of the left sequence with overlapping elements from the right observable sequence. The first parameter passed to the function is an element of the left sequence. The second parameter passed to the function is an observable sequence with elements from the right sequence that overlap with the left sequence’s element.
Returns an observable sequence that contains result elements computed from source elements that have an overlapping duration.