Find Operator

October 4, 2020 ยท View on GitHub

Overview

Emit the first item passing a predicate then complete.

Example

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

Output:

2

Options

  • WithBufferedChannel

  • WithContext

  • WithPool

  • WithCPUPool

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPublishStrategy

Contents

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