src/Stream/Iterator/WriteIterator.php
public function getIterator(): \Generator
    {
        foreach ($this->sourceIterable as $content) {
            try {
                yield $this->stream->write($content);
            } catch (\InvalidArgumentException $ex) {
                throw new \RuntimeException('The iterable generated values that are not writable', 0, $ex);
            }
        }
    }
public function getIterator(): \Generator
    {
        foreach ($this->sourceIterable as $content) {
            try {
                yield $this->stream->write($content);
            } catch (\InvalidArgumentException $ex) {
                throw new \RuntimeException('The iterable generated values that are not writable', 0, $ex);
            }
        }
    }
public function getIterator ( ) : \ Generator { foreach ( $ this -> sourceIterable as $ content ) { try { yield $ this -> stream -> write ( $ content ) ; } catch ( \ InvalidArgumentException $ ex ) { throw new \ RuntimeException ( 'The iterable generated values that are not writable' , 0 , $ ex ) ; } } }
Generates integer values for the amount of written bytes in each iteration.

@return \Generator
Generates integer values for the amount of written bytes in each iteration .