- thresholdToggle<T, R, S>(workCreator: ((event: T) => ObservableInput<R>), threshold?: number, mapper?: ((_: T, inner: R) => S)): OperatorFunction<T, S>
-
Parameters
-
workCreator: ((event: T) => ObservableInput<R>)
-
- (event: T): ObservableInput<R>
-
Returns ObservableInput<R>
-
threshold: number = 2
-
Optional
mapper: ((_: T, inner: R) => S)
-
- (_: T, inner: R): S
-
Returns S
Returns OperatorFunction<T, S>
🔘 Toggles a new subscription to the mapped Observable, once a threshold of events has been detected.
Example
```