deft 0.1.1

Cross platform ui framework
1
2
3
4
5
6
7
8
9
10
11
12
13

workerContext.bindMessage((data) => {
    console.log("Worker: received message from parent", data);
})

function test() {
    return new Promise((resolve) => setTimeout(resolve, 100))
}

test().then(() => {
    console.log("Worker: initialized!");
    workerContext.postMessage("Hello, i am a worker!");
})