(no title)
sheept | 1 day ago
await document.fonts.ready
device.lost.then(() => {
console.log('WebGPU device lost :(')
})
I feel like this isn't confusing if you know how promises work, but maybe it can be confusing for someone coming from Python/Rust, where async functions don't evaluate until their futures are awaited.
No comments yet.