Swift port of C# Await using Cocoa's Run Loop mechanism.