← All docs
usleep() — internals
Compiler internals for usleep(): lowering path, type checks, and runtime helpers.
usleep() — internals
Where it lives
- Signature:
src/builtins/system/usleep.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:625 (lower_usleep) - Function symbol:
lower_usleep()
Lowering notes
- Lowers
usleep(microseconds)through the target’s C library symbol.
Runtime helpers
The following runtime helpers are referenced:
__rt_getenv
Signature summary
function usleep(int $microseconds): void
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/time/usleep.rs(eval_builtin!) - Dispatch hooks:
direct,values