Utility functions for the async-iterator pattern in Node.js