less code version of asyncIO.js