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
..
2018-02-08 11:21:55 +00:00
2018-12-10 17:59:24 +00:00
2019-01-24 16:42:53 +00:00
2019-01-24 16:42:53 +00:00
2019-01-24 16:42:53 +00:00
2019-01-21 21:26:56 +00:00
2019-01-07 12:32:58 +00:00
2018-12-17 19:19:40 +00:00
2018-12-18 09:20:37 +00:00
2019-01-24 16:42:53 +00:00
2018-03-19 19:38:24 +01:00
2019-01-25 19:32:55 +00:00
2018-12-17 18:40:44 +00:00
2018-03-02 15:40:52 +09:00
2019-01-24 16:42:53 +00:00
2019-01-07 12:32:58 +00:00
2019-01-24 16:42:53 +00:00
2018-04-03 11:44:14 +01:00
2019-01-24 16:42:53 +00:00
2019-01-25 19:32:55 +00:00
2019-01-25 19:32:55 +00:00
2019-01-25 10:03:11 +00:00
2018-03-02 15:40:52 +09:00
2018-03-12 13:27:42 +01:00
2018-04-24 18:51:24 +01:00
2019-01-24 16:42:53 +00:00
2019-01-24 17:09:13 +00:00
2018-12-14 12:34:08 +00:00
2019-01-07 11:52:22 +00:00
2018-09-27 11:32:43 +01:00
2019-01-07 11:52:22 +00:00
2019-01-07 11:52:22 +00:00
2018-11-13 14:49:08 +00:00
2019-01-07 11:52:22 +00:00
2019-01-07 12:32:58 +00:00
2018-12-10 17:59:24 +00:00
2018-12-07 21:15:34 +00:00
2019-01-25 19:32:55 +00:00
2019-01-24 16:42:53 +00:00
2019-01-24 16:42:53 +00:00
2018-12-07 21:15:34 +00:00
2018-08-01 15:57:27 +01:00
2018-03-02 15:40:52 +09:00
2018-02-28 09:46:29 +00:00
2019-01-25 19:32:55 +00:00
2018-12-10 17:59:24 +00:00
2018-12-17 19:19:40 +00:00
2018-12-10 20:18:13 +00:00
2019-01-24 16:42:53 +00:00
2018-12-10 17:59:24 +00:00
2018-11-13 14:49:08 +00:00
2018-11-16 20:01:11 +00:00
2018-12-07 21:15:34 +00:00
2018-12-07 21:15:34 +00:00