TakeUntil Operator

February 25, 2020 ยท View on GitHub

Overview

Discard any items emitted by an Observable after a second Observable emits an item or terminates.

Example

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

Output:

1
2
3

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPublishStrategy

Contents

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