groupBy: support async iterators