-
Notifications
You must be signed in to change notification settings - Fork 8
Observers
Luis Llamas edited this page Apr 25, 2019
·
6 revisions
Performs an action on each emitted item
Do(ReactiveAction<T> action)
Performs an action at the end of the sequence
Finally(ReactiveCallback action)
Performs an action on each emmited item, and another action at the end of the sequence
DoAndFinally(ReactiveAction<T> doAction, ReactiveCallback finallyAction)
Suscribes to and observable but do nothing with the received items.
Usefull when you use ForEach or If operators, but no really interested in a Observer
DoAndFinally(ReactiveAction<T> doAction, ReactiveCallback finallyAction)
Stores the sequence items in a variable
ToProperty(T & property)
Stores the items emitted in an existing array
ToArray(T *array, size_t length)
Stores the items emitted in an existing array, treated as a circular buffer
ToCircularBuffer(T *array, size_t length)
Sends the sequence items to an digital pin
ToDigital(uint8_t pin)
Sends the sequence items to an analog pin
ToAnalog(uint8_t pin)
Sends the sequence items to the serial port
ToSerial()