#cp.rx.go.Last

A Statement that will complete after the only the last result resolves.


#API Overview

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


#API Documentation

#Constructors

Signaturecp.rx.go.Last(resolvable) -> Last
TypeConstructor
DescriptionCreates a new Last 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>Last(someObservable)</li><li>
ExamplesNone
Sourcesrc/extensions/cp/rx/go/Last.lua line 8