An optionally-asynchronous forEach with an interesting interface.