You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we can polish up and add some more methods...?
join is, on purpose, not async, to not cause a pain by having to wait for joining.
But may be it should be, if this fire-and-forget is causing people confusion?
We have already await system.cluster.joined(), and await system.cluster.waitFor(node, .up) and other conveniences, but perhaps the not async join is confusing people?
The text was updated successfully, but these errors were encountered:
I also don't like if we did join() async and join() since then in async context you are FORCED to await...
Another ugly option is to join() and joinWait() but that also is ugly...
the public func waitFor(_ nodes: some Collection<Cluster.Node>, _ status: Cluster.MemberStatus, within: Duration) async throws APIs do what Peter asked for here but they don't initiate a join
We have convenience "waiters" await system.cluster.joined or rather the renamed await system.cluster.up() but they also don't initiate.
Maybe we can polish up and add some more methods...?
join
is, on purpose, not async, to not cause a pain by having to wait for joining.But may be it should be, if this fire-and-forget is causing people confusion?
We have already
await system.cluster.joined()
, andawait system.cluster.waitFor(node, .up)
and other conveniences, but perhaps the not async join is confusing people?The text was updated successfully, but these errors were encountered: