1 | import { AsyncIterableX } from './asynciterablex';
|
2 | export declare class CatchAllAsyncIterable<TSource> extends AsyncIterableX<TSource> {
|
3 | private _source;
|
4 | constructor(source: Iterable<AsyncIterable<TSource>>);
|
5 | [Symbol.asyncIterator](signal?: AbortSignal): AsyncGenerator<TSource, void, unknown>;
|
6 | }
|
7 | /**
|
8 | * Continues an async-iterable sequence that is terminated by an exception with the next async-iterable sequence.
|
9 | *
|
10 | * @export
|
11 | * @template T The type of the elements in the source and handler sequences.
|
12 | * @param {Iterable<AsyncIterable<T>>} source async-iterable sequences to catch exceptions for.
|
13 | * @returns {AsyncIterableX<T>} An async-iterable sequence containing elements from consecutive source
|
14 | * sequences until a source sequence terminates successfully.
|
15 | */
|
16 | export declare function catchAll<T>(source: Iterable<AsyncIterable<T>>): AsyncIterableX<T>;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare function catchError<T>(...args: AsyncIterable<T>[]): AsyncIterableX<T>;
|