MCPcopy Create free account
hub / github.com/deanrad/rxfx / createQueueingService

Function createQueueingService

service/src/createService.ts:461–478  ·  view source on GitHub ↗
(
  actionNamespace: string,
  handler: EventHandler<TRequest, TNext>,
  reducerProducer?: ReducerProducer<TRequest, TNext, TError, TState>
)

Source from the content-addressed store, hash-verified

459 * @summary ![queueing mode](https://d2jksv3bi9fv68.cloudfront.net/rxfx/mode-queueing-sm.png)
460 */
461export function createQueueingService<
462 TRequest,
463 TNext = void,
464 TError = Error,
465 TState = TNext | null
466>(
467 actionNamespace: string,
468 handler: EventHandler<TRequest, TNext>,
469 reducerProducer?: ReducerProducer<TRequest, TNext, TError, TState>
470): Service<TRequest, TNext, TError, TState> {
471 return createServiceListener(
472 actionNamespace,
473 defaultBus,
474 handler,
475 reducerProducer,
476 concatMap
477 );
478}
479/**
480 * Creates a Service - a concurrency-controlled wrapper around an effect, which tracks state over the effect's lifecycle events.
481 * The effect can be a Promise-or-Observable-or-AsyncIterator returning function, and is cancelable if Observable.

Callers 2

examples.spec.tsFile · 0.90
createAsyncListServiceFunction · 0.90

Calls 1

createServiceListenerFunction · 0.85

Tested by

no test coverage detected