From 5bc74e55dfdcea9bbe7b9f8b1e4190f0dc41fcb9 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 5 Dec 2014 15:59:21 +0800 Subject: [PATCH] modify comment --- cocos/base/CCAsyncTaskPool.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cocos/base/CCAsyncTaskPool.h b/cocos/base/CCAsyncTaskPool.h index fd3d00593d..76da676559 100644 --- a/cocos/base/CCAsyncTaskPool.h +++ b/cocos/base/CCAsyncTaskPool.h @@ -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 auto enqueue(TaskType type, const TaskCallBack& callback, void* callbackParam, F&& f, Args&&... args)