Pulse
Pulse copied to clipboard
How to log to LoggerStore.shared with strict concurrency checking enabled?
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: