Contains Operator

February 25, 2020 ยท View on GitHub

Overview

Determine whether an Observable emits a particular item or not.

Example

observable := rxgo.Just(1, 2, 3)().Contains(func(i interface{}) bool {
	return i == 2
})

Output:

true

Options

  • WithBufferedChannel

  • WithContext

  • WithPool

  • WithCPUPool

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPublishStrategy

Contents

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