()
| 12022 | scheduleSyncCallback(callback); |
| 12023 | } |
| 12024 | function flushSyncCallbacksOnlyInLegacyMode() { |
| 12025 | // Only flushes the queue if there's a legacy sync callback scheduled. |
| 12026 | // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So |
| 12027 | // it might make more sense for the queue to be a list of roots instead of a |
| 12028 | // list of generic callbacks. Then we can have two: one for legacy roots, one |
| 12029 | // for concurrent roots. And this method would only flush the legacy ones. |
| 12030 | if (includesLegacySyncCallbacks) { |
| 12031 | flushSyncCallbacks(); |
| 12032 | } |
| 12033 | } |
| 12034 | function flushSyncCallbacks() { |
| 12035 | if (!isFlushingSyncQueue && syncQueue !== null) { |
| 12036 | // Prevent re-entrance. |
no test coverage detected
searching dependent graphs…