modify comment

This commit is contained in:
yangxiao 2014-12-05 15:59:21 +08:00
parent b665daf2f8
commit 5bc74e55df
1 changed files with 3 additions and 2 deletions

View File

@ -85,8 +85,9 @@ public:
* @param type task type is io task, network task or others, each type of task has a thread to deal with it.
* @param callback callback when the task is finished. The callback is called in the main thread instead of task thread
* @param callbackParam parameter used by the callback
* @f task can be lambda function
* @args task parameters
* @param f task can be lambda function
* @param args task parameters
* @return the return value is a type of std::future. You can future->get() to wait until it is finished. Or get the notice in the callback
*/
template<class F, class... Args>
auto enqueue(TaskType type, const TaskCallBack& callback, void* callbackParam, F&& f, Args&&... args)