FakeReachabilityGate
A controllable ReachabilityGate for tests. Starts reachable (default true, so awaitReachable returns immediately); flip it with setReachable to make a pending awaitReachable resume. awaitCount records how many times the gate was awaited.
Properties
Link copied to clipboard
How many times awaitReachable has been called.
Link copied to clipboard
Whether the gate currently reports connectivity.
Functions
Link copied to clipboard
Link copied to clipboard
Sets connectivity, resuming any coroutine suspended in awaitReachable when set to true.