0.2.5 • Published 5 years ago

@bilgorajskim/worker-threads v0.2.5

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Worker threads

Not stable yet, needs real tests etc. Use with caution.

This library provides abstraction over Web Workers.

What it can do?

  • Pub/Sub
  • RPC

It exposes two APIs: ThreadConnection and Thread.

ThreadConnection is a direct abstraction over MessageChannel communication providing Pub/Sub and RPC.

A Thread is a container for multiple ThreadConnections. You could use just ThreadConnection, but Thread makes managing message and RPC handlers for multiple connections easier.

Basic usage

To be written, see examples for now.

Examples

See examples, particularly advancedThreadRpc showing how to link multiple threads together.

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago