Class cc.async
- Defined in: CCBoot.js
Constructor Attributes | Constructor Name and Description |
---|---|
cc.async()
|
Method Summary
Class Detail
cc.async()
Method Detail
-
{cc.AsyncPool} map(tasks, iterator, callback, target)Do tasks by iterator.
- Parameters:
- {Array|Object} tasks
- {function|Object} iterator
- {function} callback Optional
- {Object} target Optional
- Returns:
- {cc.AsyncPool}
-
mapLimit(tasks, limit, iterator, cb, target)Do tasks by iterator limit.
- Parameters:
- {Array|Object} tasks
- {Number} limit
- {function} iterator
- {function} cb
- callback
- {Object} target Optional
-
{cc.AsyncPool} parallel(tasks, cb, target)Do tasks parallel.
- Parameters:
- {Array|Object} tasks
- {function} cb
- callback
- {Object} target Optional
- Returns:
- {cc.AsyncPool}
-
{cc.AsyncPool} series(tasks, cb, target)Do tasks series.
- Parameters:
- {Array|Object} tasks
- {function} cb Optional
- callback
- {Object} target Optional
- Returns:
- {cc.AsyncPool}
-
{cc.AsyncPool} waterfall(tasks, cb, target)Do tasks waterfall.
- Parameters:
- {Array|Object} tasks
- {function} cb
- callback
- {Object} target Optional
- Returns:
- {cc.AsyncPool}