stream_set_timeout()
function stream_set_timeout(resource $stream, int $seconds, int $microseconds = 0): bool
Sets timeout period on a stream.
Parameters:
$stream(resource)$seconds(int)$microseconds(int), default0, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_set_timeout.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_set_timeout is implemented in the compiler, see the internals page.