This website requires JavaScript.
Explore
Help
Sign In
development
/
deno
Watch
1
Star
0
Fork
You've already forked deno
0
mirror of
https://github.com/denoland/deno
synced
2024-08-25 11:07:24 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
0833a1617c
deno
/
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 17:03:49 +00: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 09:04:59 +00:00
postMessage
(
e
.
data
)
;
close
(
)
;
}
;
Reference in a new issue
Copy permalink