playing with workers
This commit is contained in:
parent
6eec4277c1
commit
0006f6483d
4 changed files with 38 additions and 41 deletions
5
packages/core/deep-thought.js
Normal file
5
packages/core/deep-thought.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
self.onmessage = ({ data: { question } }) => {
|
||||
self.postMessage({
|
||||
answer: 42,
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue