batch_fetcher 0.1.1 copy "batch_fetcher: ^0.1.1" to clipboard
batch_fetcher: ^0.1.1 copied to clipboard

Coalesces per-item value lookups into batched requests, with debouncing, per-id caching, retry with backoff, and typed per-id state.

0.1.1 #

  • Fix trim() resurrecting the ids it was asked to forget. It dropped an id's cache entry but left the id in its scope's queue, so an id awaiting a retry was re-requested and re-created on the next drain — leaking the memory the call was meant to free. It also now drops ids queued but not yet requested, and completes any caller awaiting an id it removed, which would otherwise wait for a request that is never sent.

0.1.0 #

  • Initial release: BatchFetcher, BatchScope, BatchKey, BatchOutcome, the sealed FetchEntry states, RetryPolicy / ExponentialBackoff / NoRetry, SettlePolicy / SettleWhen, BatchFetcherConfig, BatchFetcherObserver and the injected Clock.
  • Adds the batch_fetcher_testing library: FakeClock, ScriptedRequest and RecordingObserver. No new dependencies — it works under both test and flutter_test.
0
likes
160
points
119
downloads

Documentation

API reference

Publisher

verified publishersupy.io

Weekly Downloads

Coalesces per-item value lookups into batched requests, with debouncing, per-id caching, retry with backoff, and typed per-id state.

Repository (GitHub)
View/report issues

Topics

#batching #debounce #cache #retry #fetch

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on batch_fetcher