web-thread 0.2.2

Convenient Web worker threading library with transferable support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<html>
  <head>
    <title>Example Consuming Application</title>
  <body>
    <script type="module">
     import { initialize, run } from '@web-thread/library';
     await initialize();
     const answer = await run();
     console.assert(answer === 15, answer);
     console.log('answer was', answer);
    </script>
  </body>
</html>