File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ trigger at the earliest possible time in the future.
161
161
162
162
### parallel()
163
163
164
- The ` parallel(array<callable():PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<array<mixed>,Exception > ` function can be used
164
+ The ` parallel(array<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>> ` function can be used
165
165
like this:
166
166
167
167
``` php
@@ -203,7 +203,7 @@ React\Async\parallel([
203
203
204
204
### series()
205
205
206
- The ` series(array<callable():PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<array<mixed>,Exception > ` function can be used
206
+ The ` series(array<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>> ` function can be used
207
207
like this:
208
208
209
209
``` php
@@ -245,7 +245,7 @@ React\Async\series([
245
245
246
246
### waterfall()
247
247
248
- The ` waterfall(array<callable(mixed=):PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<mixed,Exception > ` function can be used
248
+ The ` waterfall(array<callable(mixed=):PromiseInterface<mixed>> $tasks): PromiseInterface<mixed> ` function can be used
249
249
like this:
250
250
251
251
``` php
Original file line number Diff line number Diff line change @@ -179,8 +179,8 @@ function delay($seconds)
179
179
}
180
180
181
181
/**
182
- * @param array<callable():PromiseInterface<mixed,Exception >> $tasks
183
- * @return PromiseInterface<array<mixed>,Exception >
182
+ * @param array<callable():PromiseInterface<mixed>> $tasks
183
+ * @return PromiseInterface<array<mixed>>
184
184
*/
185
185
function parallel (array $ tasks )
186
186
{
@@ -237,8 +237,8 @@ function parallel(array $tasks)
237
237
}
238
238
239
239
/**
240
- * @param array<callable():PromiseInterface<mixed,Exception >> $tasks
241
- * @return PromiseInterface<array<mixed>,Exception >
240
+ * @param array<callable():PromiseInterface<mixed>> $tasks
241
+ * @return PromiseInterface<array<mixed>>
242
242
*/
243
243
function series (array $ tasks )
244
244
{
@@ -277,8 +277,8 @@ function series(array $tasks)
277
277
}
278
278
279
279
/**
280
- * @param array<callable(mixed=):PromiseInterface<mixed,Exception >> $tasks
281
- * @return PromiseInterface<mixed,Exception >
280
+ * @param array<callable(mixed=):PromiseInterface<mixed>> $tasks
281
+ * @return PromiseInterface<mixed>
282
282
*/
283
283
function waterfall (array $ tasks )
284
284
{
You can’t perform that action at this time.
0 commit comments