From a47fcd44f9b8bcb6f6eb0629d2e68d1fd5c3807d Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 24 Dec 2015 19:34:15 -0800 Subject: [PATCH] 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 --- Libraries/Interaction/TaskQueue.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/Interaction/TaskQueue.js b/Libraries/Interaction/TaskQueue.js index 8ef7a37047b..a2783bea0e3 100644 --- a/Libraries/Interaction/TaskQueue.js +++ b/Libraries/Interaction/TaskQueue.js @@ -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`. */