# cp.rx.go.First

Extends: Statement

A Statement that will complete after the first result resolves.


# API Overview

Constructors - API calls which return an object, typically one that offers API methods

  • First

# API Documentation

# Constructors

# First

Signature cp.rx.go.First(resolvable) -> First
Type Constructor
Description Creates a new First Statement that will return the first value from the resolvable and complete.
Parameters
  • resolvable - a resolvable value, of which the first result will be returned.
Returns
  • The Statement which will return the first value when executed.
Notes
  • Example:
  • lua</li><li>First(someObservable)</li><li>
Examples None
Source src/extensions/cp/rx/go/First.lua line 10