worktank

A simple isomorphic library for executing functions inside WebWorkers or Node Threads pools. (by fabiospampinato)

Worktank Alternatives

Similar projects and alternatives to worktank

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better worktank alternative or higher similarity.

worktank reviews and mentions

Posts with mentions or reviews of worktank. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-04.
  • Web Crypto API
    8 projects | news.ycombinator.com | 4 Dec 2021
    Workers are awesome but you are right, working with them can be painful without the right tooling.

    Personally I've written my own libraries for abstracting all this away and I've having a blast working with workers now, maybe check them out:

    - WorkTank [1]: This abstracts away the difference between browser workers and Node worker threads, it makes it easy to make worker pools, and it can transfer simple functions to a worker at runtime too.

    - WorkTank loader: This abstracts away loading asynchronous function from a worker basically, you just add ".worker" to your file name and that file and all its dependencies are transparently replaced moved to a worker, all the rest of the app (TS types for example) doesn't even notice anything happened, it just works.

    You might want to check out the more popular "comlink" library too, although it didn't work for me for whatever reason and it doesn't support worker pools I believe.

    [1]: https://github.com/fabiospampinato/worktank

    [2]: https://github.com/fabiospampinato/worktank-loader

Stats

Basic worktank repo stats
1
34
6.6
19 days ago

fabiospampinato/worktank is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of worktank is TypeScript.


Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com