Code

Windows: Implement asynchronous functions as threads.