-
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 received items.
Usefull when you use ForEach or If operators, but no really interested in a Observer
DoAndFinally(ReactiveAction<T> doAction, ReactiveCallback finallyAction)
Stores received item in a variable
ToProperty(T & property)
Stores received items in an existing array
ToArray(T *array, size_t length)
Stores received items in an existing array, treated as a circular buffer
ToCircularBuffer(T *array, size_t length)
Sends received item to an digital pin
ToDigital(uint8_t pin)
Sends received item to an analog pin
ToAnalog(uint8_t pin)
Sends received item to serial port
ToSerial()