From ec9d0c4ff05e4f0b248049ea0c594563facbeb9f Mon Sep 17 00:00:00 2001 From: Piotr Czekaj Date: Wed, 6 Dec 2023 11:31:10 +0100 Subject: [PATCH] warning added to revoke section --- docs/utils/threading/worker-pool.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/utils/threading/worker-pool.md b/docs/utils/threading/worker-pool.md index a78fe35d6..6e9632341 100644 --- a/docs/utils/threading/worker-pool.md +++ b/docs/utils/threading/worker-pool.md @@ -159,6 +159,7 @@ To sum up, the main idea is not to reinvent the wheel. When creating plugins, de * `Reschedule()` * `Revoke()` +Using these methods, we can schedule the performance of a task, change the date on which it will be performed or cancel it altogether. ### Scheduler methods #### Schedule @@ -207,6 +208,9 @@ bool Reschedule(const Core::Time& time, const Core::ProxyType& job) o * `ERROR_NONE` - 0 (no errors) * `ERROR_UNKNOWN_KEY` - 22 +!!!warning + `ERROR_UNKNOWN_KEY` will be returned in case the job was not previously scheduled! + ```cpp uint32_t Revoke(const Core::ProxyType& job, const uint32_t waitTime = Core::infinite) override {