This commit is contained in:
Jacob Nguyen
2024-05-20 00:49:51 -05:00
parent 735a9e3816
commit 15511a4868
2 changed files with 3 additions and 4 deletions

View File

@@ -30,7 +30,6 @@ export const arrayifySource = <T>(src: T) =>
export const sharedEventStream = <T>(e: Emitter, eventName: string) =>
(fromEvent(e, eventName) as Observable<T>).pipe(share());
export function handleError<C>(crashHandler: ErrorHandling, emitter: Emitter, logging?: Logging) {
return (pload: unknown, caught: Observable<C>) => {
// This is done to fit the ErrorHandling contract

View File

@@ -197,10 +197,10 @@ export function executeModule(
/**
* A higher order function that
* - creates a stream of {@link VoidResult} { config.createStream }
* - any failures results to { config.onFailure } being called
* - calls all control plugins.
* - any failures results to { config.onStop } being called
* - if all results are ok, the stream is converted to { config.onNext }
* emit config.onSuccess Observable
* config.onNext will be returned if everything is okay.
* @param config
* @returns receiver function for flattening a stream of data
*/