-
Notifications
You must be signed in to change notification settings - Fork 8
Operators
Emit the item received if it satisfy a condition
Where(ReactiveCondition<T> condition)
Emits the item received if is not equal to the last item received
Distinct()
Emits the first item in a sequence, when the sequence is complete
First()
To emit as soon as received use TakeFirst()
Emits the last item in a sequence, when the sequence is complete
First()
To emit as soon as received use TakeLast()
Last()
Skips N items received
Skip(size_t num)
Skips until received item satisfy a condition
SkipUntil(ReactiveCondition<T> condition)
Skips while received item satisfy a condition
SkipWhile(ReactiveCondition<T> condition)
Emits the N first items received
Take(size_t num)
Emits the N item received
TakeAt(size_t index)
Emits the first item received
TakeFirst()
Emits the last item received
TakeLast()
Emits until received item satisfy a condition
TakeUntil(ReactiveCondition<T> condition)
Emits while received item satisfy a condition
TakeWhile(ReactiveCondition<T> condition)
Emits recevied items in N-size batchs, emits Completed after each batch, and reset automatically
Batch(size_t num)
Emits received items, but call a callback action if time between elements is greater than an interval
Millis version
TimeoutMillis(ReactiveAction<T> action)
Micros version
TimeoutMicros(ReactiveAction<T> action)
Need to call Update() method manually as frequently as posible
Performs an action each time it received an item
ForEach(ReactiveAction<T> function)
Performs an action each time if the item received satisfy a condition
If(ReactiveCondition<T> condition, ReactiveAction<T> function)
Loops a sequence forever
Loop()
Repeat a sequence N times
Repeat(size_t N)
Breaks the reset signal upwards
Reset()
Call Reset() method manually when necessary
Breaks the reset signal upwards
NotReset()