A small concurrency util