squadron 7.1.1 copy "squadron: ^7.1.1" to clipboard
squadron: ^7.1.1 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.

181
likes
160
points
19.9k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.16 - 2025.03.31

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

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