This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AudioToolbox | |
| import Foundation | |
| func check(_ status: OSStatus, line: Int = #line) { | |
| if status != noErr { | |
| fatalError("Error on line \(line): OSStatus \(status) - https://osstatus.com/search/results?search=\(status)") | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Dispatch | |
| let someDispatchQueue = DispatchQueue() | |
| @MainActor | |
| class Foo { | |
| nonisolated static let shared = Foo() | |
| var mybar: Bar // I only need to get this from the main actor | |
| // In the real code there are many properties; that's why I'm not tagging |
OlderNewer