Implement forward(source, sink), where source is an async iterable and sink exposes write(item), returning a promise. Return the number of successfully written items.
Consume in source order. Await each write before requesting the next item: never buffer the whole source or run concurrent writes. If write fails, stop pulling and close the iterator (using its return protocol when available); propagate the original write error. Propagate source errors as well. Do not close or end the caller-owned sink. An empty stream returns 0.