Protocolizing filehandle reader/writer

This commit is contained in:
Max Goedjen
2020-03-22 15:34:28 -07:00
parent 4778c99235
commit 4934c41d22
5 changed files with 31 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ aNotification: Notification) {
os_log(.debug, "SecretAgent finished launching")
DispatchQueue.main.async {
self.socketController.handler = self.agent.handle(fileHandle:)
self.socketController.handler = self.agent.handle(reader:writer:)
}
notifier.prompt()
updateSink = updater.$update.sink { release in