Skip to main content

## __wfi

# Function __wfi

Source

    pub unsafe fn __wfi()

🔬This is a nightly-only experimental API. (`stdarch_arm_hints` #117218)
Available on (AArch64 or `target_arch=arm64ec`) and (target feature `v6` or AArch64 or `target_arch=arm64ec`) only.
Expand description

Generates a WFI (wait for interrupt) hint instruction, or nothing.

The WFI instruction allows (but does not require) the processor to enter a low-power state until one of a number of asynchronous events occurs.