It indirectly runs from run method of AsyncParsableCommand from ArgumentParser which is bound to main actor. In this case I get false. If ran from ParsableCommand it prints true as expected. I started another thread about such behavior @MainActor behaves different on Windows and macOS It seems, on Windows DispatchQueue.main is not bound to main thread (thread which executed main function).
1 Like