squadron 7.1.0 copy "squadron: ^7.1.0" to clipboard
squadron: ^7.1.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.
  • **local_logger**: a simple example using a local service to log messages from workers.

However these examples are all implemented manually. This approach is discouraged and it is highly recommended to use squadron_builder in order to generate the boilerplate code and have your service run in Squadron workers.

183
likes
160
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)

Topics

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

Documentation

API reference

Funding

Consider supporting this project:

github.com
buymeacoffee.com

License

MIT (license)

Dependencies

cancelation_token, logger, meta, using, web

More

Packages that depend on squadron