Confusing description about task queue

Summary:
Just can't get the point. What does `the next task that might have been queued up earlier` mean? Earlier than what? `The first task`? Please correct me if I missed something.
Closes https://github.com/facebook/react-native/pull/4970

Reviewed By: svcscm

Differential Revision: D2789390

Pulled By: sahrens

fb-gh-sync-id: 3078fb6cbc7940d26d2dc393ba9448f132721ea2
This commit is contained in:
sunnylqm 2015-12-24 19:34:15 -08:00 committed by facebook-github-bot-5
parent e4272b456e
commit a47fcd44f9
1 changed files with 3 additions and 4 deletions

View File

@ -35,10 +35,9 @@ export type Task = Function | SimpleTask | PromiseTask;
* function is supplied, then the promise it returns will block execution of
* tasks already in the queue until it resolves. This can be used to make sure
* the first task is fully resolved (including asynchronous dependencies that
* also schedule more tasks via `enqueue`) before starting on the next task that
* might have been queued up earlier. The `onMoreTasks` constructor argument is
* used to inform the owner that an async task has resolved and that the queue
* should be processed again.
* also schedule more tasks via `enqueue`) before starting on the next task.
* The `onMoreTasks` constructor argument is used to inform the owner that an
* async task has resolved and that the queue should be processed again.
*
* Note: Tasks are only actually executed with explicit calls to `processNext`.
*/