web3.swift
web3.swift copied to clipboard
Xcode 14.0 thread warning
let group = DispatchGroup()
group.enter()
var network: EthereumNetwork?
net_version { result in
switch result {
case .success(let data):
network = data
case .failure(let error):
self.logger.warning("Client has no network: \(error.localizedDescription)")
}
group.leave()
}
group.wait()
``` - Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_BACKGROUND. Investigate ways to avoid priority inversions
same here