#selector(FileHandle.readToEndOfFileInBackgroundAndNotify) throws an error: Ambiguous use of 'readToEndOfFileInBackgroundAndNotify'
So I've tried to specify it a bit more (notice the parens): #selector(FileHandle.readToEndOfFileInBackgroundAndNotify()) Ambiguous reference to member 'readToEndOfFileInBackgroundAndNotify(forModes:)' So I've tried to cast it to a Void -> Void func: #selector(FileHandle.readToEndOfFileInBackgroundAndNotify as (Void) -> Void) Ambiguous reference to member 'readToEndOfFileInBackgroundAndNotify(forModes:)' How do I settle this one? Method signatures in the generated header are: open func readToEndOfFileInBackgroundAndNotify(forModes modes: [RunLoopMode]?) open func readToEndOfFileInBackgroundAndNotify()
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users