Seauning
Results
2
comments of
Seauning
`1.回到 timer 阶段执行回调 2. - 如果 poll 队列为空时,会有两件事发生 如果有 setImmediate 回调需要执行,poll 阶段会停止并且进入到 check 阶段执行回调 如果没有 setImmediate 回调需要执行,会等待回调被加入到队列中并立即执行回调,这里同样会有个超时时间设置防止一直等待下去 当然设定了 timer 的话且 poll 队列为空,则会判断是否有 timer 超时,如果有的话会回到 timer 阶段执行回调。` ---------------------------- 你好想问下如果队空setTimeout和setImmediate的回调函数是哪个优先级更高呢
That will be a nice answer, but the behavior of union types confuses me, can you tell me how I should understand it, or is there any reference to it.