Sum Operator

February 25, 2020 ยท View on GitHub

Overview

Calculate the sum of numbers emitted by an Observable and emit this sum.

Instances

  • SumFloat32
  • SumFloat64
  • SumInt64

Example

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

Output:

10

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPool

  • WithCPUPool

  • WithPublishStrategy

Contents

  1. 1Overview
  2. 2Instances
  3. 3Example
  4. 4Options