Pulse icon indicating copy to clipboard operation
Pulse copied to clipboard

How to log to LoggerStore.shared with strict concurrency checking enabled?

Open erichoracek opened this issue 1 year ago • 0 comments

As far as I can tell, it's not possible to log to the default LoggerStore.shared when you have strict concurrency checking enabled. It produces the following warning, as LoggerStore.shared is globally-mutable state that could theoretically be changed out from under you while accessing it, and static var is not thread-safe: image

erichoracek avatar Dec 02 '23 00:12 erichoracek