Amb Operator

February 25, 2020 ยท View on GitHub

Overview

Given two or more source Observables, emit all of the items from only the first of these Observables to emit an item.

Example

observable := rxgo.Amb([]rxgo.Observable{
	rxgo.Just(1, 2, 3)(),
	rxgo.Just(4, 5, 6)(),
})

Output:

1
2
3

or

4
5
6

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

Contents

  1. 1Overview
  2. 2Example
  3. 3Options