Skip to content
d-markey edited this page Jun 23, 2023 · 17 revisions

Squadron is a multithreading library for Dart and Flutter applications, providing cross-platform workers and worker pools to offload CPU-bound and long running tasks.

Squadron takes care of all plumbing aspects to have your code run in platform threads while keeping it callable from your app's main thread seamlessly.

Developers simply focus on implementing the services that need to run in Squadron Workers.

Squadron comes with annotations leveraged by companion package squadron_builder to automatically generate boilerplate code. This code is necessary to initialize and wrap custom services into workers and worker pools. It can be written manually, but using squadron_builder instead is highly recommended.

Typical use-cases:

  • fight UI jank: execute code that creates UI jank in a single Worker -- it will not run faster, but will help keep the app responsive to user actions!

  • parallelize computations: distribute workloads to a set of Workers or to a WorkerPool -- this will help get results quicker!


Squadron logo

Squadron - Multithreading and worker pools in Dart.

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

Pub Package Dart Platforms Flutter Platforms

License Null Safety Dart Style Pub Points Likes Popularity

Clone this wiki locally