( handler: EffectSource<Request, Response>, concurrencyOperator = mergeMap, initialState?: TState )
| 437 | |
| 438 | /** Creates an Effect - A higher-order wrapper around a Promise-or-Observable-or-AsyncIterator returning function. |
| 439 | * The effect is debounced for `msec`, meaning a new invocation waits to being, and interrupts any existing delay or execution. |
| 440 | * The effect is cancelable if it returns an Observable. `createDebouncedEffect` runs in concurrency mode: "toggling". |
| 441 | * @summary  |
| 442 | */ |
| 443 | export function createDebouncedEffect( |
| 444 | msec: number = DEFAULT_DEBOUNCE_INTERVAL |
| 445 | ) { |
| 446 | return function < |
| 447 | Request, |
| 448 | Response = void, |
| 449 | TError extends Error = Error, |
| 450 | TState = Response |
| 451 | >( |
| 452 | handler: EffectSource<Request, Response>, |
| 453 | initialState?: TState, |
no test coverage detected