Take Operator

February 25, 2020 ยท View on GitHub

Overview

Emit only the first n items emitted by an Observable.

Example

observable := rxgo.Just(1, 2, 3, 4, 5)().Take(2)

Output:

1
2

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPublishStrategy

Contents

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