Lines Matching refs:drain
5 * Represents an asynchronous read-only stream that supports a drain event and
27 private $drain;
35 /** @var bool Whether or not drain needs to be called at some point */
45 * then the "drain" functionality is not utilized.
49 * - drain: (callable) Function to invoke when the stream has drained,
82 static $callables = ['pump', 'drain'];
96 // Cannot drain when there's no high water mark.
98 $this->drain = null;
124 * - drain: (callable) See constructor documentation.
183 if (!$this->needsDrain && $this->drain) {
189 // If we need to drain, then drain when the buffer is empty.
192 $drainFn = $this->drain;