Spaces:
Paused
Paused
File size: 234 Bytes
9ada4bc |
1 2 3 4 5 6 7 8 9 10 11 12 |
export function nextTick(callback: () => void) {
setTimeout(callback, 0)
}
export function nextTickAsync(callback: () => void) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(callback())
}, 0)
})
}
|