← All docs

stream_set_blocking()

Sets blocking/non-blocking mode on a stream.

stream_set_blocking()

function stream_set_blocking(resource $stream, bool $enable): bool

Sets blocking/non-blocking mode on a stream.

Parameters:

  • $stream (resource)
  • $enable (bool)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_set_blocking is implemented in the compiler, see the internals page.