Add some comments

This commit is contained in:
Ingvar Stepanyan
2020-04-29 16:03:04 +01:00
parent 60dacff05e
commit 0e3aa54dc8
2 changed files with 27 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ addEventListener(
//
// At this point, the "main" thread can run Wasm that
// will synchronously block waiting on other atomics.
//
// Note that we don't need to wait for Wasm instantiation here - it's
// better to start main thread as early as possible, and then it blocks
// on a shared atomic anyway until Worker is fully ready.
postMessage(null);
await initOxiPNG(...(event.data as WorkerInit));