//
//  RunLoop.swift
//  Edge
//
//  Created by Tyler Fleming Cloutier on 5/2/16.
//
//

import Dispatch

public struct RunLoop {
    
    public init() {
        
    }
    
    public static func runAll(ignoreSigPipe: Bool = true) {
        if ignoreSigPipe {
            signal(SIGPIPE, SIG_IGN)
        }
        dispatchMain()
    }
    
}

//
//  RunLoop.swift
//  Edge
//
//  Created by Tyler Fleming Cloutier on 5/2/16.
//
//

import Dispatch

public struct RunLoop {
    
    public init() {
        
    }
    
    public static func runAll(ignoreSigPipe: Bool = true) {
        if ignoreSigPipe {
            signal(SIGPIPE, SIG_IGN)
        }
        dispatch_main()
    }
    
}

--- 
+++ 
@@ -18,7 +18,7 @@
         if ignoreSigPipe {
             signal(SIGPIPE, SIG_IGN)
         }
-        dispatch_main()
+        dispatchMain()
     }
     
 }
Update to new Dispatch APIs.
