Module sleep
Expand description
Sleep control.
If autosleep is enabled (set_autosleep), the system will automatically
enter sleep mode after a period of inactivity. To prevent the system from
sleeping, applications can create wake locks ([WakeLock]).
Structs§
- Wake
Lock - A wake lock that prevents the system from sleeping.
Functions§
- set_
autosleep - Enables or disables autosleep.