Tools for async-friendly code