Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xdg/vendor/types/deno.d.ts>queueMicrotask

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function queueMicrotask
import { queueMicrotask } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";

A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment. This event loop may be either the main event loop or the event loop driving a web worker.

queueMicrotask(() => { console.log('This event loop stack is complete'); });