-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Service arch 2020-11-30
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