A thread-safe coroutine library.