[RxJS] Defer task execution with the asapScheduler (microtask)

asapScheduleris similar to queueMicroTask()and Promise
AsapScheduler lets you schedule work on the microtask queue, executing task as soon as possible, once all synchronous code has been executed.
Be warned though, that heavy operations within thte Microtask queue will block the UI until the queue is cleared.
 
 

 
posted @ 2022-10-05 02:27  Zhentiw  阅读(15)  评论(0编辑  收藏  举报