import { run , clear } from './vendored/macrotask' ; export const addMacrotask = ( globalThis as any ) . setImmediate ?? run ; export const clearMacrotask = ( globalThis as any ) . clearImmediate ?? clear ;