//
//  RunLoop.swift
//  Astro
//
//  Created by Jeremy Wiebe on 2016-09-02.
//  Copyright © 2016 Mobify Research & Development Inc. All rights reserved.
//

import Foundation

// Runs the current thread's run loop until it is idle
func flushRunLoop() {
    while (CFRunLoopRunInMode(.defaultMode, 0, true) == .handledSource) {}
}
