Skip to content

Commit

Permalink
Forgot file
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-van committed Oct 18, 2021
1 parent 9b65828 commit 16b2d29
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/queueMicrotask.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

import queueMicrotask_ from 'core-js-pure/features/queue-microtask'

/**
* An alternative to standard `queueMicrotask()` function.
*
* This is just of mirror of core-js's implementation for compatibility.
*
* @param {Function} fct The function to call in a microtask.
*/
function queueMicrotask (fct) {
queueMicrotask_(fct)
}

export default queueMicrotask

0 comments on commit 16b2d29

Please sign in to comment.