Max Operator

February 25, 2020 ยท View on GitHub

Overview

Determine, and emit, the maximum-valued item emitted by an Observable.

Example

observable := rxgo.Just(2, 5, 1, 6, 3, 4)().
	Max(func(i1 interface{}, i2 interface{}) int {
		return i1.(int) - i2.(int)
	})

Output:

6

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPool

  • WithCPUPool

  • WithPublishStrategy

Contents

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