@@ -218,25 +218,25 @@ class DataLoader<K, V, C = K> {
218
218
// http://www.ecma-international.org/ecma-262/6.0/#sec-jobs-and-job-queues
219
219
//
220
220
// 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
223
223
// flushing.
224
224
//
225
225
// 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
228
228
// 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
231
231
// 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
236
236
// run directly after the all Promise jobs are done.
237
237
//
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
240
240
// started.
241
241
const enqueuePostPromiseJob =
242
242
typeof process === 'object' && typeof process . nextTick === 'function'
0 commit comments