MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / on_new_task

Method on_new_task

smallthinker/tools/server/server.cpp:1623–1625  ·  view source on GitHub ↗

Register function to process a new task

Source from the content-addressed store, hash-verified

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) {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected