A Future design pattern implementation in Swift using libdispatch and POSIX mutexes and condition variables