src/Text/TextWriter.php
public function writeLine(string $text): \Generator
    {
        return yield from $this->write($text . $this->newLine, $this->timeout);
    }
public function writeLine(string $text): \Generator
    {
        return yield from $this->write($text . $this->newLine, $this->timeout);
    }
@coroutine

Writes a value to the stream and then terminates the line.

The given value will be coerced to a string before being written.

@param mixed $text A printable value that can be coerced to a string.

@return \Generator

@resolve int Number of bytes written to the buffer.

@throws \Icicle\Awaitable\Exception\TimeoutException If the operation times out.
@throws \Icicle\Stream\Exception\UnwritableException If the stream is no longer writable.
@throws \Icicle\Stream\Exception\ClosedException If the stream is unexpectedly closed.