Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeasync_locks

Synchronization primitives for asynchronous Dart code like Lock, Event, and Semaphore

pub.devRemove
synchronized

Lock mechanism to prevent concurrent access to asynchronous code.

pub.devRemove
ScoresHealth5393 (best)
Maintenance394 (best)
Quality100100
Popularity3795 (best)
Community6469 (best)
Compatibility100100
UsageDownloads (30 days)9.1k5.6M (best)
Likes12670 (best)
Pub points160 / 160160 / 160
GitHub stars—217
MaintenanceLatest release4.0.2, 2 years ago3.6.1+1, 12 days ago (best)
Major versions in 12 months00
Contributors—6
Publisherharuka39.metekartik.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseGPL-3.0MIT
Setup effortLowLow
JudgementStrengths
  • Familiar concepts for developers coming from a Python background
  • Provides essential concurrency primitives like Lock, Event, and Semaphore
  • No external dependencies
  • No dependencies other than the Dart SDK
  • Supports browser, DartVM, and Flutter across multiple platforms
  • Offers reentrant lock options via Zones and multi-lock capabilities
Weaknesses
  • Limited to concurrency management primitives
  • The name is biased since Dart is single-threaded; it only helps handle asynchronous await interleaving
  • Basic locks are not reentrant by default
Warnings
  • Copyleft license
None
async_locks vs synchronized: which Flutter package should you use? | pubscout