LastOrDefault Operator

February 25, 2020 ยท View on GitHub

Overview

Similar to Last, but you pass it a default item that it can emit if the source Observable fails to emit any items.

Example

observable := rxgo.Empty().LastOrDefault(1)

Output:

1

Options

  • WithBufferedChannel

  • WithContext

  • WithObservationStrategy

  • WithErrorStrategy

  • WithPublishStrategy

Contents

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