UNPKG

12.1 kBTypeScriptView Raw
1/**
2 * Runs all specified async-iterable sequences in parallel and collects their last elements.
3 *
4 * @export
5 * @template T The type of the elements in the first source sequence.
6 * @template T2 The type of the elements in the second source sequence.
7 * @param {AsyncIterable<T>} source First async-iterable source.
8 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
9 * @returns {(Promise<[T, T2] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
10 */
11export declare function forkJoin<T, T2>(source: AsyncIterable<T>, source2: AsyncIterable<T2>): Promise<[T, T2] | undefined>;
12/**
13 * Runs all specified async-iterable sequences in parallel and collects their last elements.
14 *
15 * @export
16 * @template T The type of the elements in the first source sequence.
17 * @template T2 The type of the elements in the second source sequence.
18 * @template T3 The type of the elements in the third source sequence.
19 * @param {AsyncIterable<T>} source First async-iterable source.
20 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
21 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
22 * @returns {(Promise<[T, T2, T3] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
23 */
24export declare function forkJoin<T, T2, T3>(source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>): Promise<[T, T2, T3] | undefined>;
25/**
26 * Runs all specified async-iterable sequences in parallel and collects their last elements.
27 *
28 * @export
29 * @template T The type of the elements in the first source sequence.
30 * @template T2 The type of the elements in the second source sequence.
31 * @template T3 The type of the elements in the third source sequence.
32 * @template T4 The type of the elements in the fourth source sequence.
33 * @param {AsyncIterable<T>} source First async-iterable source.
34 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
35 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
36 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
37 * @returns {(Promise<[T, T2, T3, T4] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
38 */
39export declare function forkJoin<T, T2, T3, T4>(source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>): Promise<[T, T2, T3, T4] | undefined>;
40/**
41 * Runs all specified async-iterable sequences in parallel and collects their last elements.
42 *
43 * @export
44 * @template T The type of the elements in the first source sequence.
45 * @template T2 The type of the elements in the second source sequence.
46 * @template T3 The type of the elements in the third source sequence.
47 * @template T4 The type of the elements in the fourth source sequence.
48 * @template T5 The type of the elements in the fifth source sequence.
49 * @param {AsyncIterable<T>} source First async-iterable source.
50 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
51 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
52 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
53 * @param {AsyncIterable<T5>} source5 Fifth async-iterable source.
54 * @returns {(Promise<[T, T2, T3, T4, T5] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
55 */
56export declare function forkJoin<T, T2, T3, T4, T5>(source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>, source5: AsyncIterable<T5>): Promise<[T, T2, T3, T4, T5] | undefined>;
57/**
58 * Runs all specified async-iterable sequences in parallel and collects their last elements.
59 *
60 * @export
61 * @template T The type of the elements in the first source sequence.
62 * @template T2 The type of the elements in the second source sequence.
63 * @template T3 The type of the elements in the third source sequence.
64 * @template T4 The type of the elements in the fourth source sequence.
65 * @template T5 The type of the elements in the fifth source sequence.
66 * @template T6 The type of the elements in the sixth source sequence.
67 * @param {AsyncIterable<T>} source First async-iterable source.
68 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
69 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
70 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
71 * @param {AsyncIterable<T5>} source5 Fifth async-iterable source.
72 * @param {AsyncIterable<T6>} source6 Sixth async-iterable source.
73 * @returns {(Promise<[T, T2, T3, T4, T5, T6] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
74 */
75export declare function forkJoin<T, T2, T3, T4, T5, T6>(source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>, source5: AsyncIterable<T5>, source6: AsyncIterable<T6>): Promise<[T, T2, T3, T4, T5, T6] | undefined>;
76/**
77 * Runs all specified async-iterable sequences in parallel and collects their last elements.
78 *
79 * @export
80 * @template T The type of the elements in the first source sequence.
81 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
82 * @param {AsyncIterable<T>} source First async-iterable source.
83 * @returns {(Promise<[T] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
84 */
85export declare function forkJoin<T>(signal: AbortSignal, source: AsyncIterable<T>): Promise<[T] | undefined>;
86/**
87 * Runs all specified async-iterable sequences in parallel and collects their last elements.
88 *
89 * @export
90 * @template T The type of the elements in the first source sequence.
91 * @template T2 The type of the elements in the second source sequence.
92 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
93 * @param {AsyncIterable<T>} source First async-iterable source.
94 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
95 * @returns {(Promise<[T, T2] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
96 */
97export declare function forkJoin<T, T2>(signal: AbortSignal, source: AsyncIterable<T>, source2: AsyncIterable<T2>): Promise<[T, T2] | undefined>;
98/**
99 * Runs all specified async-iterable sequences in parallel and collects their last elements.
100 *
101 * @export
102 * @template T The type of the elements in the first source sequence.
103 * @template T2 The type of the elements in the second source sequence.
104 * @template T3 The type of the elements in the third source sequence.
105 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
106 * @param {AsyncIterable<T>} source First async-iterable source.
107 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
108 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
109 * @returns {(Promise<[T, T2, T3] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
110 */
111export declare function forkJoin<T, T2, T3>(signal: AbortSignal, source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>): Promise<[T, T2, T3] | undefined>;
112/**
113 * Runs all specified async-iterable sequences in parallel and collects their last elements.
114 *
115 * @export
116 * @template T The type of the elements in the first source sequence.
117 * @template T2 The type of the elements in the second source sequence.
118 * @template T3 The type of the elements in the third source sequence.
119 * @template T4 The type of the elements in the fourth source sequence.
120 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
121 * @param {AsyncIterable<T>} source First async-iterable source.
122 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
123 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
124 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
125 * @returns {(Promise<[T, T2, T3, T4] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
126 */
127export declare function forkJoin<T, T2, T3, T4>(signal: AbortSignal, source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>): Promise<[T, T2, T3, T4] | undefined>;
128/**
129 * Runs all specified async-iterable sequences in parallel and collects their last elements.
130 *
131 * @export
132 * @template T The type of the elements in the first source sequence.
133 * @template T2 The type of the elements in the second source sequence.
134 * @template T3 The type of the elements in the third source sequence.
135 * @template T4 The type of the elements in the fourth source sequence.
136 * @template T5 The type of the elements in the fifth source sequence.
137 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
138 * @param {AsyncIterable<T>} source First async-iterable source.
139 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
140 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
141 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
142 * @param {AsyncIterable<T5>} source5 Fifth async-iterable source.
143 * @returns {(Promise<[T, T2, T3, T4, T5] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
144 */
145export declare function forkJoin<T, T2, T3, T4, T5>(signal: AbortSignal, source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>, source5: AsyncIterable<T5>): Promise<[T, T2, T3, T4, T5] | undefined>;
146/**
147 * Runs all specified async-iterable sequences in parallel and collects their last elements.
148 *
149 * @export
150 * @template T The type of the elements in the first source sequence.
151 * @template T2 The type of the elements in the second source sequence.
152 * @template T3 The type of the elements in the third source sequence.
153 * @template T4 The type of the elements in the fourth source sequence.
154 * @template T5 The type of the elements in the fifth source sequence.
155 * @template T6 The type of the elements in the sixth source sequence.
156 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
157 * @param {AsyncIterable<T>} source First async-iterable source.
158 * @param {AsyncIterable<T2>} source2 Second async-iterable source.
159 * @param {AsyncIterable<T3>} source3 Third async-iterable source.
160 * @param {AsyncIterable<T4>} source4 Fourth async-iterable source.
161 * @param {AsyncIterable<T5>} source5 Fifth async-iterable source.
162 * @param {AsyncIterable<T6>} source6 Sixth async-iterable source.
163 * @returns {(Promise<[T, T2, T3, T4, T5, T6] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
164 */
165export declare function forkJoin<T, T2, T3, T4, T5, T6>(signal: AbortSignal, source: AsyncIterable<T>, source2: AsyncIterable<T2>, source3: AsyncIterable<T3>, source4: AsyncIterable<T4>, source5: AsyncIterable<T5>, source6: AsyncIterable<T6>): Promise<[T, T2, T3, T4, T5, T6] | undefined>;
166/**
167 * Runs all specified async-iterable sequences in parallel and collects their last elements.
168 *
169 * @export
170 * @template T The type of the elements in the source sequences.
171 * @param {...AsyncIterable<T>[]} sources The source sequences.
172 * @returns {(Promise<T[] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
173 */
174export declare function forkJoin<T>(...sources: AsyncIterable<T>[]): Promise<T[] | undefined>;
175/**
176 * Runs all specified async-iterable sequences in parallel and collects their last elements.
177 *
178 * @export
179 * @template T The type of the elements in the source sequences.
180 * @param {AbortSignal} signal An abort signal used for cancellation at any time.
181 * @param {...AsyncIterable<T>[]} sources The source sequences.
182 * @returns {(Promise<T[] | undefined>)} An async-iterable sequence with an array of all the last elements of all sequences.
183 */
184export declare function forkJoin<T>(signal: AbortSignal, ...sources: AsyncIterable<T>[]): Promise<T[] | undefined>;