PHP Class Amp\Artax\IteratorWriter

Inheritance: implements Amp\Artax\Writer
Afficher le fichier Open project: amphp/artax

Méthodes publiques

Méthode Description
__construct ( Amp\Artax\WriterFactory $writerFactory = null )
write ( resource $socket, mixed $iterator ) : Amp\Promise Write iterator content to the socket.

Private Methods

Méthode Description
afterElementWrite ( Exception $error = null, $result = null )
finalizeEventualWriteElement ( $current )
writeNextElement ( )

Method Details

__construct() public méthode

public __construct ( Amp\Artax\WriterFactory $writerFactory = null )
$writerFactory Amp\Artax\WriterFactory

write() public méthode

Write iterator content to the socket.
public write ( resource $socket, mixed $iterator ) : Amp\Promise
$socket resource
$iterator mixed
Résultat Amp\Promise