@@ -218,25 +218,25 @@ class DataLoader<K, V, C = K> {
218218// http://www.ecma-international.org/ecma-262/6.0/#sec-jobs-and-job-queues
219219//
220220// When calling `then` on a Promise, it enqueues a Job on a specific
221- // "PromiseJobs" JobQueue which is flushed "recursively" until it
222- // is empty, including new Promise Jobs that are added during the current
221+ // "PromiseJobs" JobQueue which is flushed "recursively" until it
222+ // is empty, including new Promise Jobs that are added during the current
223223// flushing.
224224//
225225// DataLoader batches all loads which occur in a single frame of execution
226- // (synchronously executed code), but should include in the batch all loads
227- // which occur during the flushing of the "PromiseJobs" JobQueue after that
226+ // (synchronously executed code), but should include in the batch all loads
227+ // which occur during the flushing of the "PromiseJobs" JobQueue after that
228228// same execution frame.
229- //
230- // In Node.js we can use `process.nextTick` that is run
229+ //
230+ // In Node.js we can use `process.nextTick` that is run
231231// immediately after the "PromiseJobs" is empty.
232- //
233- // Browsers do not have an equivalent mechanism, therfore
234- // we use `setImmediate` or `setTimeout` which is always run after all Promise
235- // jobs. This might be less efficient that `nextTick`, which is ensured to
232+ //
233+ // Browsers do not have an equivalent mechanism, therefore
234+ // we use `setImmediate` or `setTimeout` which is always run after all Promise
235+ // jobs. This might be less efficient that `nextTick`, which is ensured to
236236// run directly after the all Promise jobs are done.
237237//
238- // In either environment we wrap `nextTick`, `setImmedidate ` or `setTimeout`
239- // in a Promise handler itself, to ensure the flushing of "PromiseJobs" has
238+ // In either environment we wrap `nextTick`, `setImmediate ` or `setTimeout`
239+ // in a Promise handler itself, to ensure the flushing of "PromiseJobs" has
240240// started.
241241const enqueuePostPromiseJob =
242242 typeof process === 'object' && typeof process . nextTick === 'function'
0 commit comments