Skip to content

Commit

Permalink
warning added to revoke section
Browse files Browse the repository at this point in the history
  • Loading branch information
pczekaj99 committed Dec 6, 2023
1 parent 68302b0 commit ec9d0c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/utils/threading/worker-pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -207,6 +208,9 @@ bool Reschedule(const Core::Time& time, const Core::ProxyType<IDispatch>& 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<IDispatch>& job, const uint32_t waitTime = Core::infinite) override
{
Expand Down

0 comments on commit ec9d0c4

Please sign in to comment.