I have a public actor StreamCommandQueue: NSObject
, which implements StreamDelegate
, hence I have to derive from NSObject
.
On Apple platforms, that works fine. On Linux I get the error:
error: actor-isolated initializer 'init()' has different actor isolation from nonisolated overridden declaration
public actor StreamCommandQueue: NSObject {
^
Foundation.NSObject:2:12: note: overridden declaration is here
public init()
^
Why the difference and how am I supposed to fix that?