Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InputStream.php

function InputStream::onEmpty

Sets a callback that is called when the write buffer becomes empty.

File

vendor/symfony/process/InputStream.php, line 32

Class

InputStream
Provides a way to continuously write to the input of a Process until the InputStream is closed.

Namespace

Symfony\Component\Process

Code

public function onEmpty(?callable $onEmpty = null) : void {
    $this->onEmpty = null !== $onEmpty ? $onEmpty(...) : null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal