#cp.rx.go.Do

A Statement that will execute the provided resolvable values. This will resolve the provided values into Observables and pass on the first result of each to the next stage as individual parameters. This will continue until one of the Observables has completed, at which point other results from values are ignored.

For example:

Do(Observable.of(1, 2, 3), Observable.of("a", "b")) :Now(function(number, letter) print(tostring(number)..letter))

This will result in:

1a 2b

For more power, you can add a Then to futher modify the results, or chain other operations.


#Submodules


#API Overview

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

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Constructors

Signaturecp.rx.go.Do(...) -> Do
TypeConstructor
DescriptionBegins the definition of a Do Statement.
Parameters
  • ... - the list of resolvable values to evaluate.
Returns
  • A new Do Statement instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/rx/go/Do.lua line 35

#Methods

Signaturecp.rx.go.Do:Then(...) -> Do.Then
TypeMethod
DescriptionCall this to define what will happen once the Do values resolve successfully. The parameters can be any 'resolvable' type.
Parameters
  • ... - The list of resolvable values to process for each Do result.
Returns
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/rx/go/Do.lua line 82