Register function to process a new task
| 1621 | |
| 1622 | // Register function to process a new task |
| 1623 | void on_new_task(std::function<void(server_task &&)> callback) { |
| 1624 | callback_new_task = std::move(callback); |
| 1625 | } |
| 1626 | |
| 1627 | // Register the function to be called when all slots data is ready to be processed |
| 1628 | void on_update_slots(std::function<void(void)> callback) { |