First Operator

February 25, 2020 ยท View on GitHub

Overview

Emit only the first item emitted by an Observable.

Example

observable := rxgo.Just(1, 2, 3)().First()

Output:

true

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithPublishStrategy

Contents

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