Asynchronous computation for javascript iterators. A mixin.