Method ReconnectAsync(Func<CancellationToken, Task>, CancellationToken)
The reconnect loop of a connector that restores its connection itself: waits until the next attempt is due, runs
reconnect, reports or , and repeats until an attempt
succeeds. A connect inside reconnect that can hang goes through .
Call it after .
public Task<bool> ReconnectAsync(Func<CancellationToken, Task> reconnect, CancellationToken ct)