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

Function createQueueingEffect

effect/src/createEffect.ts:308–318  ·  view source on GitHub ↗
(
  handler: EffectSource<Request, Response>,
  initialState?: TState
)

Source from the content-addressed store, hash-verified

306
307 // The first batch starts us listening
308 batch.next();
309
310 return Object.assign(executor, extensions);
311}
312
313/** Creates an Effect - A higher-order wrapper around a Promise-or-Observable-or-AsyncIterator returning function.
314 * The effect is cancelable if it returns an Observable. `createQueueingEffect` runs in concurrency mode: "immediate" aka `mergeMap`.
315 * @summary ![immediate mode](https://d2jksv3bi9fv68.cloudfront.net/rxfx/mode-immediate-sm.png) */
316export function createImmediateEffect<
317 Request,
318 Response = void,
319 TError extends Error = Error,
320 TState = Response
321>(

Callers 2

index.tsFile · 0.85

Calls 1

createEffectFunction · 0.85

Tested by

no test coverage detected