Add single synchronous processing loop with async IO à la node.js