React\Stream\Stream::write PHP Метод

write() публичный Метод

public write ( $data )
    public function write($data)
    {
        if (!$this->writable) {
            return;
        }
        return $this->buffer->write($data);
    }

Usage Example

Пример #1
0
 public function write($data)
 {
     if (!$this->in->isWritable()) {
         throw new \Exception('Stream not writable');
     }
     $this->in->write($data);
 }
All Usage Examples Of React\Stream\Stream::write