← All docs
stream_select() — internals
Compiler internals for stream_select(): lowering path, type checks, and runtime helpers.
stream_select() — internals
Where it lives
- Signature:
src/builtins/io/stream_select.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:2314 (lower_stream_select) - Function symbol:
lower_stream_select()
Lowering notes
- Lowers
stream_select(read, write, except, seconds, microseconds?).
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function stream_select(array $read, array $write, array $except, int $seconds, int $microseconds = 0): int
What the type checker enforces
- Arity: takes 4–5 arguments (1 optional).
- By-reference parameters:
$read,$write,$except.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/stream_select.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$read,$write,$except.