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

Function createBlockingService

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

Source from the content-addressed store, hash-verified

641 * @summary ![blocking mode](https://d2jksv3bi9fv68.cloudfront.net/rxfx/mode-blocking-sm.png)
642 */
643export function createBlockingService<
644 TRequest,
645 TNext = void,
646 TError = Error,
647 TState = TNext | null
648>(
649 actionNamespace: string,
650 handler: EventHandler<TRequest, TNext>,
651 reducerProducer?: ReducerProducer<TRequest, TNext, TError, TState>
652): Service<TRequest, TNext, TError, TState> {
653 return createServiceListener(
654 actionNamespace,
655 defaultBus,
656 handler,
657 reducerProducer,
658 exhaustMap
659 );
660}
661
662/**
663 * Creates a Service - a concurrency-controlled wrapper around an effect, which tracks state over the effect's lifecycle events.

Callers

nothing calls this directly

Calls 1

createServiceListenerFunction · 0.85

Tested by

no test coverage detected