David Skrundz
0eb85a4478
Add deadlines as an alternative to timeouts ( #770 )
...
Add deadlines as an alternative to timeouts
Motivation:
Address #603
Modifications:
- Add NIODeadline type
- Add func scheduleTask<T>(deadline: NIODeadline, _ task: @escaping () throws -> T) -> Scheduled<T>
- Reduce the use of DispatchTime in favor of Time
- Replace timeout calls with deadline calls where it makes sense
Result:
Tasks can be scheduled after an amount of time has passed, or at a certain time.
2019-01-25 19:32:55 +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-03 17:45:45 +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-24 16:42:53 +00:00
2019-01-07 14:18:48 +00:00
2019-01-24 16:42:53 +00:00
2018-08-29 15:24:58 +01:00
2018-12-14 18:49:34 +00:00
2018-12-14 18:49:34 +00:00
2019-01-24 16:42:53 +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-01-24 16:42:53 +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-24 16:42:53 +00:00
2018-05-21 16:05:17 +01:00
2019-01-24 17:09:13 +00:00
2018-03-19 20:41:35 +09:00
2019-01-25 10:03:11 +00:00
2019-01-25 10:03:11 +00:00
2019-01-25 19:32:55 +00:00
2018-12-07 21:15:34 +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
2018-12-11 17:50:58 +00:00
2018-09-14 15:38:41 +02:00
2019-01-24 16:42:53 +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-01-24 16:42:53 +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