Closed funcmike closed 1 year ago
There is no guarantee to run code below in correct order.
self.connection = connection self.isConnect.store(false, ordering: .relaxed)
Less fragile design is to just use locks and switch to state enum (proposed by @fabianfett )
enum State { case connecting case connected(AMQPConnection) ... }
There is no guarantee to run code below in correct order.
Less fragile design is to just use locks and switch to state enum (proposed by @fabianfett )