Made streamable.toStream() method asynchronous.