Nathan Harris
06fb45d07e
Rename ELF.andAll(_:eventLoop:) to andAllSucceed(_🔛 ) and add ELF.andAllComplete ( #803 )
...
Motiviation:
After adding `ELF.whenAllComplete` the concept of "fail fast" and "fail slow" for reducing an array of future results together was introduced.
This commit adds that concepts with the `andAll* methods that act as simple completion notifications.
Modifications:
Rename `EventLoopFuture.andAll(_:eventLoop:)` to `andAllSucceed(_🔛 )` to denote its "fail fast" nature, and to match Swift API guidelines.
Add new `EventLoopFuture.andAllComplete(_🔛 )` for a "fail slow" companion.
Shift implementation of `whenAllComplete(_🔛 )` to be usable without unnecessary allocations in `andAllComplete`
Result:
EventLoopFuture now has two methods for "flattening" arrays of EventLoopFuture into a single notification ELF
2019-02-06 09:16:48 +00:00
..
2019-01-25 19:32:55 +00:00
2018-03-15 21:23:19 +01:00
2018-03-12 13:27:42 +01:00
2018-02-21 20:16:28 +01:00
2019-01-03 10:58:15 +00:00
2019-01-03 10:58:15 +00:00
2019-01-24 16:42:53 +00:00
2018-05-22 15:58:43 +01:00
2019-01-29 11:52:20 +00:00
2019-01-03 17:45:45 +00:00
2019-01-24 16:42:53 +00:00
2018-03-20 21:44:45 +09:00
2019-01-24 16:42:53 +00:00
2018-08-29 15:24:58 +01:00
2019-01-30 19:24:59 +00:00
2019-01-07 14:18:48 +00:00
2019-02-06 09:16:48 +00:00
2018-08-29 15:24:58 +01:00
2019-01-29 12:29:04 +00:00
2018-12-14 18:49:34 +00:00
2019-01-30 19:24:59 +00:00
2018-12-10 16:23:12 +00:00
2018-02-08 13:12:30 +00:00
2018-02-21 20:16:28 +01:00
2019-01-24 16:42:53 +00:00
2018-04-18 10:04:12 +01:00
2019-02-06 09:16:48 +00:00
2018-08-29 15:24:58 +01:00
2019-01-24 17:09:13 +00:00
2018-04-20 16:19:10 +01:00
2019-01-30 19:24:59 +00:00
2019-01-30 19:24:59 +00:00
2019-01-24 17:09:13 +00:00
2018-03-19 20:41:35 +09:00
2019-02-06 09:16:48 +00:00
2019-01-25 10:03:11 +00:00
2019-02-05 09:01:48 +00:00
2019-01-29 13:19:12 +00:00
2019-01-21 16:41:04 +00:00
2018-04-24 18:51:24 +01:00
2018-05-25 17:37:55 +02:00
2018-03-28 10:49:05 +02:00
2019-01-24 16:42:53 +00:00
2018-03-21 01:14:47 +09:00
2018-03-27 19:04:33 +02:00
2018-03-27 19:04:33 +02:00
2019-01-21 16:41:04 +00:00
2018-09-13 09:09:15 +02:00
2018-09-27 11:32:43 +01:00
2018-05-29 08:04:45 +01:00
2019-01-29 12:29:04 +00:00
2018-09-14 15:38:41 +02:00
2019-02-05 09:01:48 +00:00
2018-09-24 10:24:09 +01:00
2019-01-24 16:42:53 +00:00
2018-07-31 13:31:46 +01:00
2019-01-05 08:08:47 +00:00
2018-02-23 13:09:00 +01:00
2018-03-27 19:04:33 +02:00
2018-03-27 19:04:33 +02:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2019-02-06 09:16:48 +00:00
2018-04-20 16:19:10 +01:00
2018-12-10 20:18:13 +00:00
2018-08-30 20:46:08 +02:00
2019-01-25 19:32:55 +00:00
2018-08-14 15:01:34 +01:00
2019-01-21 16:41:04 +00:00
2018-09-24 10:24:09 +01:00
2018-08-16 19:00:56 +01:00
2018-02-28 09:46:29 +00:00
2018-02-21 20:16:28 +01:00
2019-01-25 19:32:55 +00:00
2018-02-16 17:28:43 +00:00
2018-02-21 20:16:28 +01:00
2018-03-02 21:56:33 +09:00
2018-02-21 20:16:28 +01:00
2018-03-03 09:04:57 +09:00
2018-03-03 09:04:57 +09:00