Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Service arch 2020-11-30
Description
The API should be as follows.
ExecutorFuture<void> sleepUntil(Date_t when, const CancelationToken& token); |
The pattern
CancelationSource cancelSource;
|
auto execFuture = sleepUntil(deadline, cancelSource.token())
|
.then([] {
|
// Do stuff |
});
|
will replace usages of TaskExecutor::scheduleWorkAt