1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | 'use strict';
|
11 |
|
12 |
|
13 |
|
14 | if (process.env.NODE_ENV !== "production") {
|
15 | (function() {
|
16 | 'use strict';
|
17 |
|
18 | Object.defineProperty(exports, '__esModule', { value: true });
|
19 |
|
20 | var enableSchedulerDebugging = false;
|
21 |
|
22 | var currentTime = 0;
|
23 | var scheduledCallback = null;
|
24 | var scheduledTimeout = null;
|
25 | var timeoutTime = -1;
|
26 | var yieldedValues = null;
|
27 | var expectedNumberOfYields = -1;
|
28 | var didStop = false;
|
29 | var isFlushing = false;
|
30 | var needsPaint = false;
|
31 | var shouldYieldForPaint = false;
|
32 |
|
33 | function requestHostCallback(callback) {
|
34 | scheduledCallback = callback;
|
35 | }
|
36 |
|
37 |
|
38 |
|
39 | function requestHostTimeout(callback, ms) {
|
40 | scheduledTimeout = callback;
|
41 | timeoutTime = currentTime + ms;
|
42 | }
|
43 |
|
44 | function cancelHostTimeout() {
|
45 | scheduledTimeout = null;
|
46 | timeoutTime = -1;
|
47 | }
|
48 |
|
49 | function shouldYieldToHost() {
|
50 | if (expectedNumberOfYields !== -1 && yieldedValues !== null && yieldedValues.length >= expectedNumberOfYields || shouldYieldForPaint && needsPaint) {
|
51 |
|
52 | didStop = true;
|
53 | return true;
|
54 | }
|
55 | return false;
|
56 | }
|
57 |
|
58 | function getCurrentTime() {
|
59 | return currentTime;
|
60 | }
|
61 |
|
62 | function forceFrameRate() {
|
63 |
|
64 | }
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | function unstable_flushNumberOfYields(count) {
|
70 | if (isFlushing) {
|
71 | throw new Error('Already flushing work.');
|
72 | }
|
73 | if (scheduledCallback !== null) {
|
74 | var cb = scheduledCallback;
|
75 | expectedNumberOfYields = count;
|
76 | isFlushing = true;
|
77 | try {
|
78 | var hasMoreWork = true;
|
79 | do {
|
80 | hasMoreWork = cb(true, currentTime);
|
81 | } while (hasMoreWork && !didStop);
|
82 | if (!hasMoreWork) {
|
83 | scheduledCallback = null;
|
84 | }
|
85 | } finally {
|
86 | expectedNumberOfYields = -1;
|
87 | didStop = false;
|
88 | isFlushing = false;
|
89 | }
|
90 | }
|
91 | }
|
92 |
|
93 | function unstable_flushUntilNextPaint() {
|
94 | if (isFlushing) {
|
95 | throw new Error('Already flushing work.');
|
96 | }
|
97 | if (scheduledCallback !== null) {
|
98 | var cb = scheduledCallback;
|
99 | shouldYieldForPaint = true;
|
100 | needsPaint = false;
|
101 | isFlushing = true;
|
102 | try {
|
103 | var hasMoreWork = true;
|
104 | do {
|
105 | hasMoreWork = cb(true, currentTime);
|
106 | } while (hasMoreWork && !didStop);
|
107 | if (!hasMoreWork) {
|
108 | scheduledCallback = null;
|
109 | }
|
110 | } finally {
|
111 | shouldYieldForPaint = false;
|
112 | didStop = false;
|
113 | isFlushing = false;
|
114 | }
|
115 | }
|
116 | }
|
117 |
|
118 | function unstable_flushExpired() {
|
119 | if (isFlushing) {
|
120 | throw new Error('Already flushing work.');
|
121 | }
|
122 | if (scheduledCallback !== null) {
|
123 | isFlushing = true;
|
124 | try {
|
125 | var hasMoreWork = scheduledCallback(false, currentTime);
|
126 | if (!hasMoreWork) {
|
127 | scheduledCallback = null;
|
128 | }
|
129 | } finally {
|
130 | isFlushing = false;
|
131 | }
|
132 | }
|
133 | }
|
134 |
|
135 | function unstable_flushAllWithoutAsserting() {
|
136 |
|
137 | if (isFlushing) {
|
138 | throw new Error('Already flushing work.');
|
139 | }
|
140 | if (scheduledCallback !== null) {
|
141 | var cb = scheduledCallback;
|
142 | isFlushing = true;
|
143 | try {
|
144 | var hasMoreWork = true;
|
145 | do {
|
146 | hasMoreWork = cb(true, currentTime);
|
147 | } while (hasMoreWork);
|
148 | if (!hasMoreWork) {
|
149 | scheduledCallback = null;
|
150 | }
|
151 | return true;
|
152 | } finally {
|
153 | isFlushing = false;
|
154 | }
|
155 | } else {
|
156 | return false;
|
157 | }
|
158 | }
|
159 |
|
160 | function unstable_clearYields() {
|
161 | if (yieldedValues === null) {
|
162 | return [];
|
163 | }
|
164 | var values = yieldedValues;
|
165 | yieldedValues = null;
|
166 | return values;
|
167 | }
|
168 |
|
169 | function unstable_flushAll() {
|
170 | if (yieldedValues !== null) {
|
171 | throw new Error('Log is not empty. Assert on the log of yielded values before ' + 'flushing additional work.');
|
172 | }
|
173 | unstable_flushAllWithoutAsserting();
|
174 | if (yieldedValues !== null) {
|
175 | throw new Error('While flushing work, something yielded a value. Use an ' + 'assertion helper to assert on the log of yielded values, e.g. ' + 'expect(Scheduler).toFlushAndYield([...])');
|
176 | }
|
177 | }
|
178 |
|
179 | function unstable_yieldValue(value) {
|
180 | if (yieldedValues === null) {
|
181 | yieldedValues = [value];
|
182 | } else {
|
183 | yieldedValues.push(value);
|
184 | }
|
185 | }
|
186 |
|
187 | function unstable_advanceTime(ms) {
|
188 | currentTime += ms;
|
189 | if (!isFlushing) {
|
190 | if (scheduledTimeout !== null && timeoutTime <= currentTime) {
|
191 | scheduledTimeout(currentTime);
|
192 | timeoutTime = -1;
|
193 | scheduledTimeout = null;
|
194 | }
|
195 | unstable_flushExpired();
|
196 | }
|
197 | }
|
198 |
|
199 | function requestPaint() {
|
200 | needsPaint = true;
|
201 | }
|
202 |
|
203 |
|
204 |
|
205 |
|
206 | var ImmediatePriority = 1;
|
207 | var UserBlockingPriority = 2;
|
208 | var NormalPriority = 3;
|
209 | var LowPriority = 4;
|
210 | var IdlePriority = 5;
|
211 |
|
212 |
|
213 |
|
214 |
|
215 | var maxSigned31BitInt = 1073741823;
|
216 |
|
217 |
|
218 | var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
219 |
|
220 | var USER_BLOCKING_PRIORITY = 250;
|
221 | var NORMAL_PRIORITY_TIMEOUT = 5000;
|
222 | var LOW_PRIORITY_TIMEOUT = 10000;
|
223 |
|
224 | var IDLE_PRIORITY = maxSigned31BitInt;
|
225 |
|
226 |
|
227 | var firstTask = null;
|
228 | var firstDelayedTask = null;
|
229 |
|
230 |
|
231 | var isSchedulerPaused = false;
|
232 |
|
233 | var currentTask = null;
|
234 | var currentPriorityLevel = NormalPriority;
|
235 |
|
236 |
|
237 | var isPerformingWork = false;
|
238 |
|
239 | var isHostCallbackScheduled = false;
|
240 | var isHostTimeoutScheduled = false;
|
241 |
|
242 | function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
|
243 | return callback(didTimeout);
|
244 | }
|
245 | function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
|
246 | return callback(didTimeout);
|
247 | }
|
248 | function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
|
249 | return callback(didTimeout);
|
250 | }
|
251 | function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
|
252 | return callback(didTimeout);
|
253 | }
|
254 | function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
|
255 | return callback(didTimeout);
|
256 | }
|
257 |
|
258 | function flushTask(task, currentTime) {
|
259 |
|
260 |
|
261 | var next = task.next;
|
262 | if (next === task) {
|
263 |
|
264 | firstTask = null;
|
265 | } else {
|
266 |
|
267 | if (task === firstTask) {
|
268 | firstTask = next;
|
269 | }
|
270 | var previous = task.previous;
|
271 | previous.next = next;
|
272 | next.previous = previous;
|
273 | }
|
274 | task.next = task.previous = null;
|
275 |
|
276 |
|
277 | var callback = task.callback;
|
278 | var previousPriorityLevel = currentPriorityLevel;
|
279 | var previousTask = currentTask;
|
280 | currentPriorityLevel = task.priorityLevel;
|
281 | currentTask = task;
|
282 | var continuationCallback;
|
283 | try {
|
284 | var didUserCallbackTimeout = task.expirationTime <= currentTime;
|
285 |
|
286 |
|
287 | switch (currentPriorityLevel) {
|
288 | case ImmediatePriority:
|
289 | continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
|
290 | break;
|
291 | case UserBlockingPriority:
|
292 | continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
|
293 | break;
|
294 | case NormalPriority:
|
295 | continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
|
296 | break;
|
297 | case LowPriority:
|
298 | continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
|
299 | break;
|
300 | case IdlePriority:
|
301 | continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
|
302 | break;
|
303 | }
|
304 | } catch (error) {
|
305 | throw error;
|
306 | } finally {
|
307 | currentPriorityLevel = previousPriorityLevel;
|
308 | currentTask = previousTask;
|
309 | }
|
310 |
|
311 |
|
312 |
|
313 | if (typeof continuationCallback === 'function') {
|
314 | var expirationTime = task.expirationTime;
|
315 | var continuationTask = task;
|
316 | continuationTask.callback = continuationCallback;
|
317 |
|
318 |
|
319 |
|
320 |
|
321 |
|
322 | if (firstTask === null) {
|
323 |
|
324 | firstTask = continuationTask.next = continuationTask.previous = continuationTask;
|
325 | } else {
|
326 | var nextAfterContinuation = null;
|
327 | var t = firstTask;
|
328 | do {
|
329 | if (expirationTime <= t.expirationTime) {
|
330 |
|
331 |
|
332 | nextAfterContinuation = t;
|
333 | break;
|
334 | }
|
335 | t = t.next;
|
336 | } while (t !== firstTask);
|
337 | if (nextAfterContinuation === null) {
|
338 |
|
339 |
|
340 | nextAfterContinuation = firstTask;
|
341 | } else if (nextAfterContinuation === firstTask) {
|
342 |
|
343 | firstTask = continuationTask;
|
344 | }
|
345 |
|
346 | var _previous = nextAfterContinuation.previous;
|
347 | _previous.next = nextAfterContinuation.previous = continuationTask;
|
348 | continuationTask.next = nextAfterContinuation;
|
349 | continuationTask.previous = _previous;
|
350 | }
|
351 | }
|
352 | }
|
353 |
|
354 | function advanceTimers(currentTime) {
|
355 |
|
356 | if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
|
357 | do {
|
358 | var task = firstDelayedTask;
|
359 | var next = task.next;
|
360 | if (task === next) {
|
361 | firstDelayedTask = null;
|
362 | } else {
|
363 | firstDelayedTask = next;
|
364 | var previous = task.previous;
|
365 | previous.next = next;
|
366 | next.previous = previous;
|
367 | }
|
368 | task.next = task.previous = null;
|
369 | insertScheduledTask(task, task.expirationTime);
|
370 | } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
|
371 | }
|
372 | }
|
373 |
|
374 | function handleTimeout(currentTime) {
|
375 | isHostTimeoutScheduled = false;
|
376 | advanceTimers(currentTime);
|
377 |
|
378 | if (!isHostCallbackScheduled) {
|
379 | if (firstTask !== null) {
|
380 | isHostCallbackScheduled = true;
|
381 | requestHostCallback(flushWork);
|
382 | } else if (firstDelayedTask !== null) {
|
383 | requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
|
384 | }
|
385 | }
|
386 | }
|
387 |
|
388 | function flushWork(hasTimeRemaining, initialTime) {
|
389 |
|
390 | if (enableSchedulerDebugging && isSchedulerPaused) {
|
391 | return;
|
392 | }
|
393 |
|
394 |
|
395 | isHostCallbackScheduled = false;
|
396 | if (isHostTimeoutScheduled) {
|
397 |
|
398 | isHostTimeoutScheduled = false;
|
399 | cancelHostTimeout();
|
400 | }
|
401 |
|
402 | var currentTime = initialTime;
|
403 | advanceTimers(currentTime);
|
404 |
|
405 | isPerformingWork = true;
|
406 | try {
|
407 | if (!hasTimeRemaining) {
|
408 |
|
409 |
|
410 |
|
411 | while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
|
412 | flushTask(firstTask, currentTime);
|
413 | currentTime = getCurrentTime();
|
414 | advanceTimers(currentTime);
|
415 | }
|
416 | } else {
|
417 |
|
418 | if (firstTask !== null) {
|
419 | do {
|
420 | flushTask(firstTask, currentTime);
|
421 | currentTime = getCurrentTime();
|
422 | advanceTimers(currentTime);
|
423 | } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
|
424 | }
|
425 | }
|
426 |
|
427 | if (firstTask !== null) {
|
428 | return true;
|
429 | } else {
|
430 | if (firstDelayedTask !== null) {
|
431 | requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
|
432 | }
|
433 | return false;
|
434 | }
|
435 | } finally {
|
436 | isPerformingWork = false;
|
437 | }
|
438 | }
|
439 |
|
440 | function unstable_runWithPriority(priorityLevel, eventHandler) {
|
441 | switch (priorityLevel) {
|
442 | case ImmediatePriority:
|
443 | case UserBlockingPriority:
|
444 | case NormalPriority:
|
445 | case LowPriority:
|
446 | case IdlePriority:
|
447 | break;
|
448 | default:
|
449 | priorityLevel = NormalPriority;
|
450 | }
|
451 |
|
452 | var previousPriorityLevel = currentPriorityLevel;
|
453 | currentPriorityLevel = priorityLevel;
|
454 |
|
455 | try {
|
456 | return eventHandler();
|
457 | } finally {
|
458 | currentPriorityLevel = previousPriorityLevel;
|
459 | }
|
460 | }
|
461 |
|
462 | function unstable_next(eventHandler) {
|
463 | var priorityLevel;
|
464 | switch (currentPriorityLevel) {
|
465 | case ImmediatePriority:
|
466 | case UserBlockingPriority:
|
467 | case NormalPriority:
|
468 |
|
469 | priorityLevel = NormalPriority;
|
470 | break;
|
471 | default:
|
472 |
|
473 | priorityLevel = currentPriorityLevel;
|
474 | break;
|
475 | }
|
476 |
|
477 | var previousPriorityLevel = currentPriorityLevel;
|
478 | currentPriorityLevel = priorityLevel;
|
479 |
|
480 | try {
|
481 | return eventHandler();
|
482 | } finally {
|
483 | currentPriorityLevel = previousPriorityLevel;
|
484 | }
|
485 | }
|
486 |
|
487 | function unstable_wrapCallback(callback) {
|
488 | var parentPriorityLevel = currentPriorityLevel;
|
489 | return function () {
|
490 |
|
491 | var previousPriorityLevel = currentPriorityLevel;
|
492 | currentPriorityLevel = parentPriorityLevel;
|
493 |
|
494 | try {
|
495 | return callback.apply(this, arguments);
|
496 | } finally {
|
497 | currentPriorityLevel = previousPriorityLevel;
|
498 | }
|
499 | };
|
500 | }
|
501 |
|
502 | function timeoutForPriorityLevel(priorityLevel) {
|
503 | switch (priorityLevel) {
|
504 | case ImmediatePriority:
|
505 | return IMMEDIATE_PRIORITY_TIMEOUT;
|
506 | case UserBlockingPriority:
|
507 | return USER_BLOCKING_PRIORITY;
|
508 | case IdlePriority:
|
509 | return IDLE_PRIORITY;
|
510 | case LowPriority:
|
511 | return LOW_PRIORITY_TIMEOUT;
|
512 | case NormalPriority:
|
513 | default:
|
514 | return NORMAL_PRIORITY_TIMEOUT;
|
515 | }
|
516 | }
|
517 |
|
518 | function unstable_scheduleCallback(priorityLevel, callback, options) {
|
519 | var currentTime = getCurrentTime();
|
520 |
|
521 | var startTime;
|
522 | var timeout;
|
523 | if (typeof options === 'object' && options !== null) {
|
524 | var delay = options.delay;
|
525 | if (typeof delay === 'number' && delay > 0) {
|
526 | startTime = currentTime + delay;
|
527 | } else {
|
528 | startTime = currentTime;
|
529 | }
|
530 | timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
|
531 | } else {
|
532 | timeout = timeoutForPriorityLevel(priorityLevel);
|
533 | startTime = currentTime;
|
534 | }
|
535 |
|
536 | var expirationTime = startTime + timeout;
|
537 |
|
538 | var newTask = {
|
539 | callback: callback,
|
540 | priorityLevel: priorityLevel,
|
541 | startTime: startTime,
|
542 | expirationTime: expirationTime,
|
543 | next: null,
|
544 | previous: null
|
545 | };
|
546 |
|
547 | if (startTime > currentTime) {
|
548 |
|
549 | insertDelayedTask(newTask, startTime);
|
550 | if (firstTask === null && firstDelayedTask === newTask) {
|
551 |
|
552 | if (isHostTimeoutScheduled) {
|
553 |
|
554 | cancelHostTimeout();
|
555 | } else {
|
556 | isHostTimeoutScheduled = true;
|
557 | }
|
558 |
|
559 | requestHostTimeout(handleTimeout, startTime - currentTime);
|
560 | }
|
561 | } else {
|
562 | insertScheduledTask(newTask, expirationTime);
|
563 |
|
564 |
|
565 | if (!isHostCallbackScheduled && !isPerformingWork) {
|
566 | isHostCallbackScheduled = true;
|
567 | requestHostCallback(flushWork);
|
568 | }
|
569 | }
|
570 |
|
571 | return newTask;
|
572 | }
|
573 |
|
574 | function insertScheduledTask(newTask, expirationTime) {
|
575 |
|
576 |
|
577 |
|
578 | if (firstTask === null) {
|
579 |
|
580 | firstTask = newTask.next = newTask.previous = newTask;
|
581 | } else {
|
582 | var next = null;
|
583 | var task = firstTask;
|
584 | do {
|
585 | if (expirationTime < task.expirationTime) {
|
586 |
|
587 | next = task;
|
588 | break;
|
589 | }
|
590 | task = task.next;
|
591 | } while (task !== firstTask);
|
592 |
|
593 | if (next === null) {
|
594 |
|
595 |
|
596 | next = firstTask;
|
597 | } else if (next === firstTask) {
|
598 |
|
599 | firstTask = newTask;
|
600 | }
|
601 |
|
602 | var previous = next.previous;
|
603 | previous.next = next.previous = newTask;
|
604 | newTask.next = next;
|
605 | newTask.previous = previous;
|
606 | }
|
607 | }
|
608 |
|
609 | function insertDelayedTask(newTask, startTime) {
|
610 |
|
611 | if (firstDelayedTask === null) {
|
612 |
|
613 | firstDelayedTask = newTask.next = newTask.previous = newTask;
|
614 | } else {
|
615 | var next = null;
|
616 | var task = firstDelayedTask;
|
617 | do {
|
618 | if (startTime < task.startTime) {
|
619 |
|
620 | next = task;
|
621 | break;
|
622 | }
|
623 | task = task.next;
|
624 | } while (task !== firstDelayedTask);
|
625 |
|
626 | if (next === null) {
|
627 |
|
628 |
|
629 | next = firstDelayedTask;
|
630 | } else if (next === firstDelayedTask) {
|
631 |
|
632 | firstDelayedTask = newTask;
|
633 | }
|
634 |
|
635 | var previous = next.previous;
|
636 | previous.next = next.previous = newTask;
|
637 | newTask.next = next;
|
638 | newTask.previous = previous;
|
639 | }
|
640 | }
|
641 |
|
642 | function unstable_pauseExecution() {
|
643 | isSchedulerPaused = true;
|
644 | }
|
645 |
|
646 | function unstable_continueExecution() {
|
647 | isSchedulerPaused = false;
|
648 | if (!isHostCallbackScheduled && !isPerformingWork) {
|
649 | isHostCallbackScheduled = true;
|
650 | requestHostCallback(flushWork);
|
651 | }
|
652 | }
|
653 |
|
654 | function unstable_getFirstCallbackNode() {
|
655 | return firstTask;
|
656 | }
|
657 |
|
658 | function unstable_cancelCallback(task) {
|
659 | var next = task.next;
|
660 | if (next === null) {
|
661 |
|
662 | return;
|
663 | }
|
664 |
|
665 | if (task === next) {
|
666 | if (task === firstTask) {
|
667 | firstTask = null;
|
668 | } else if (task === firstDelayedTask) {
|
669 | firstDelayedTask = null;
|
670 | }
|
671 | } else {
|
672 | if (task === firstTask) {
|
673 | firstTask = next;
|
674 | } else if (task === firstDelayedTask) {
|
675 | firstDelayedTask = next;
|
676 | }
|
677 | var previous = task.previous;
|
678 | previous.next = next;
|
679 | next.previous = previous;
|
680 | }
|
681 |
|
682 | task.next = task.previous = null;
|
683 | }
|
684 |
|
685 | function unstable_getCurrentPriorityLevel() {
|
686 | return currentPriorityLevel;
|
687 | }
|
688 |
|
689 | function unstable_shouldYield() {
|
690 | var currentTime = getCurrentTime();
|
691 | advanceTimers(currentTime);
|
692 | return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
|
693 | }
|
694 |
|
695 | var unstable_requestPaint = requestPaint;
|
696 |
|
697 | exports.unstable_flushAllWithoutAsserting = unstable_flushAllWithoutAsserting;
|
698 | exports.unstable_flushNumberOfYields = unstable_flushNumberOfYields;
|
699 | exports.unstable_flushExpired = unstable_flushExpired;
|
700 | exports.unstable_clearYields = unstable_clearYields;
|
701 | exports.unstable_flushUntilNextPaint = unstable_flushUntilNextPaint;
|
702 | exports.unstable_flushAll = unstable_flushAll;
|
703 | exports.unstable_yieldValue = unstable_yieldValue;
|
704 | exports.unstable_advanceTime = unstable_advanceTime;
|
705 | exports.unstable_ImmediatePriority = ImmediatePriority;
|
706 | exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
707 | exports.unstable_NormalPriority = NormalPriority;
|
708 | exports.unstable_IdlePriority = IdlePriority;
|
709 | exports.unstable_LowPriority = LowPriority;
|
710 | exports.unstable_runWithPriority = unstable_runWithPriority;
|
711 | exports.unstable_next = unstable_next;
|
712 | exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
713 | exports.unstable_cancelCallback = unstable_cancelCallback;
|
714 | exports.unstable_wrapCallback = unstable_wrapCallback;
|
715 | exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
716 | exports.unstable_shouldYield = unstable_shouldYield;
|
717 | exports.unstable_requestPaint = unstable_requestPaint;
|
718 | exports.unstable_continueExecution = unstable_continueExecution;
|
719 | exports.unstable_pauseExecution = unstable_pauseExecution;
|
720 | exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
721 | exports.unstable_now = getCurrentTime;
|
722 | exports.unstable_forceFrameRate = forceFrameRate;
|
723 | })();
|
724 | }
|