Is there any API? in JS's task queue?

We all know that the setTimeout method can insert callbacks into the task queue of the js engine after interval, so is there a specific method for "insert" that the front-end engineer can get and use?
because I think that after we get this method, we can write some asynchronous programming frameworks ourselves.
Thank you for your help!

Mar.09,2021

does not, because if the browser allows you to operate the task queue
, then the third-party js is even more insecure and scary. For the sake of security, it can only reduce your operability


this is what the existing asynchronous programming solutions do, but it is a standard level, and independent development is basically hopeless

.
Menu