* Flush both queues and run the watchers.
()
| 3037 | */ |
| 3038 | |
| 3039 | function flushBatcherQueue() { |
| 3040 | var _again = true; |
| 3041 | |
| 3042 | _function: while (_again) { |
| 3043 | _again = false; |
| 3044 | |
| 3045 | runBatcherQueue(queue); |
| 3046 | runBatcherQueue(userQueue); |
| 3047 | // user watchers triggered more watchers, |
| 3048 | // keep flushing until it depletes |
| 3049 | if (queue.length) { |
| 3050 | _again = true; |
| 3051 | continue _function; |
| 3052 | } |
| 3053 | // dev tool hook |
| 3054 | /* istanbul ignore if */ |
| 3055 | if (devtools && config.devtools) { |
| 3056 | devtools.emit('flush'); |
| 3057 | } |
| 3058 | resetBatcherState(); |
| 3059 | } |
| 3060 | } |
| 3061 | |
| 3062 | /** |
| 3063 | * Run the watchers in a single queue. |
nothing calls this directly
no test coverage detected