This website requires JavaScript.
Explore
Help
Sign in
foster
/
denoland-deno
Watch
1
Star
0
Fork
You've already forked denoland-deno
0
mirror of
https://github.com/denoland/deno.git
synced
2024-12-04 17:18:23 -05:00
Code
Issues
Packages
1
Wiki
Activity
7ee3eec58a
denoland-deno
/
cli
/
tests
/
testdata
/
workers
/
sibling_worker.js
5 lines
58 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Update to Prettier 2 and use ES Private Fields (#4498)
2020-03-28 13:03:49 -04:00
onmessage
=
(
e
)
=>
{
workers: basic event loop (#3828) * establish basic event loop for workers * make "self.close()" inside worker * remove "runWorkerMessageLoop() - instead manually call global function in Rust when message arrives. This is done in preparation for structured clone * refactor "WorkerChannel" and use distinct structs for internal and external channels; "WorkerChannelsInternal" and "WorkerHandle" * move "State.worker_channels_internal" to "Worker.internal_channels" * add "WorkerEvent" enum for child->host communication; currently "Message(Buf)" and "Error(ErrBox)" variants are supported * add tests for nested workers * add tests for worker throwing error on startup
2020-02-11 04:04:59 -05:00
postMessage
(
e
.
data
)
;
close
(
)
;
}
;
Copy permalink