squadron 7.0.0 copy "squadron: ^7.0.0" to clipboard
squadron: ^7.0.0 copied to clipboard

Multithreading and worker thread pool for Dart / Flutter, to offload CPU-bound and heavy I/O tasks to Isolate or Web Worker threads.

example/README.md

Squadron logo

Squadron - Multithreading and worker pools in Dart #

Offload CPU-bound and long running tasks and give your apps some air!

Works everywhere: desktop, server, device, browser.

Supports native, JavaScript & Web Assembly platforms.

Pub Package Dart Platforms Flutter Platforms

License Null Safety Dart Style Pub Points Likes Popularity

Last Commit Dart Workflow Code Lines Code Coverage

Samples #

This folder contains examples and tests for Squadron:

  • **hello_world**: a simple example to execute a service in a pool of workers.
  • **streaming**: a simple example to execute a service streaming values from a worker.
  • **test**: various test benchmarks.

However examples here only rely on Squadron and are implemented manually.

This approach is discouraged and it is highly recommended to use squadron_builder in order to generate the boilerplate code in order to have your service run in Squadron workers.

183
likes
0
points
19.1k
downloads

Publisher

unverified uploader

Weekly Downloads

Multithreading and worker thread pool for Dart / Flutter, to offload CPU-bound and heavy I/O tasks to Isolate or Web Worker threads.

Repository (GitHub)
View/report issues

Topics

#concurrency #parallelism #isolate #multithread #web-worker

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

cancelation_token, logger, meta, using, web

More

Packages that depend on squadron