Skip to main content

durable_queue_connectivity 0.1.0 copy "durable_queue_connectivity: ^0.1.0" to clipboard
durable_queue_connectivity: ^0.1.0 copied to clipboard

A network gate for durable_queue. Tasks that need the network wait while offline, without using attempts, and start when connectivity returns.

0.1.0 #

  • Initial release.
  • ConnectivityGate.create(): a durable_queue gate driven by connectivity_plus, open while a connection is up. accept limits the connection types (for example Wi-Fi only).
  • Optional reachability probe: the gate opens only when the probe succeeds, probes again every probeRetryInterval while connected but unreachable, and probes when the queue reports a connection error (recheck), at most once per minRecheckInterval.
  • HttpProbe: one HTTP request to your own server; 2xx and 4xx count as reachable, redirects (captive portals), 5xx, timeouts, and connection errors do not.
  • deferOnConnectionError(gate) and isConnectionError: a register(deferOn:) rule for SocketException, HttpException, ClientException, and TimeoutException.
  • NetworkGate: the same gate for any network source, without connectivity_plus.
  • Requires durable_queue 0.5.0 or later.
0
likes
160
points
88
downloads

Documentation

API reference

Publisher

verified publisherboffincoders.com

Weekly Downloads

A network gate for durable_queue. Tasks that need the network wait while offline, without using attempts, and start when connectivity returns.

Repository (GitHub)
View/report issues
Contributing

Topics

#queue #connectivity #offline #retry #background

License

MIT (license)

Dependencies

connectivity_plus, durable_queue, flutter, http

More

Packages that depend on durable_queue_connectivity