Module sleep

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§

WakeLock
A wake lock that prevents the system from sleeping.

Functions§

set_autosleep
Enables or disables autosleep.