winit 0.30.13

Cross-platform window creation library.
Documentation
1
2
3
4
5
6
7
8
9
10
onmessage = event => {
    const [port, timeout] = event.data
    const f = () => port.postMessage(undefined)

    if ('scheduler' in this) {
        scheduler.postTask(f, { delay: timeout })
    } else {
        setTimeout(f, timeout)
    }
}