Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributepure

Functional programming essentials for Dart with composition, memoization, and trampolines.

pub.devRemove
structured_async

Structured asynchronous programming and cancellable futures for Dart.

pub.devRemove
ScoresHealth56 (best)39
Maintenance27 (best)0
Quality97 (best)96
Popularity32 (best)17
Community46 (best)6
Compatibility100100
UsageDownloads (30 days)3.6k (best)409
Likes1415 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars1717
MaintenanceLatest release1.0.0, 8 months ago (best)0.3.2, 4 years ago
Major versions in 12 months10 (best)
Contributors2 (best)1
Publisheryakov.codesUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies10 (best)
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Provides tail call optimization and stack-safe recursion.
  • Supports up to 9 arguments for extensions like composition and currying.
  • Includes both strong and weak memoization capabilities.
  • Automatically cancels pending timers and futures when a CancellableFuture completes.
  • Propagates errors from unawaited child computations to the caller.
  • Provides group and stream helpers for managing multiple async operations easily.
Weaknesses
  • Can make code harder to read for developers unfamiliar with functional programming idioms.
  • Using memoization on impure functions leads to unexpected behavior.
  • Completed futures and timers inside a cancelled scope will briefly awaken before terminating.
  • Isolates spawned inside a CancellableFuture do not terminate automatically without manual cleanup callbacks.
WarningsNoneNone
pure vs structured_async: which Flutter package should you use? | pubscout