durable_queue_connectivity 0.1.0
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(): adurable_queuegate driven byconnectivity_plus, open while a connection is up.acceptlimits the connection types (for example Wi-Fi only).- Optional reachability
probe: the gate opens only when the probe succeeds, probes again everyprobeRetryIntervalwhile connected but unreachable, and probes when the queue reports a connection error (recheck), at most once perminRecheckInterval. 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)andisConnectionError: aregister(deferOn:)rule forSocketException,HttpException,ClientException, andTimeoutException.NetworkGate: the same gate for any network source, withoutconnectivity_plus.- Requires
durable_queue0.5.0 or later.