Introduction to queueMicrotask in javascript

added by JavaScript Kicks
9/9/2019 7:13:52 AM

326 Views

Introduction queueMicrotask is a new browser API which can be used to convert your sync code into async. e.g - queueMicrotask(() => { console.log('hey i am executed asychronously by queueMicrotask'); }); It's similar to what we were doing using setTimeout.


0 comments