requestAsync
external fun requestAsync(type: WakeLockType = definedExternally): Promise<WakeLockSentinel>(source)
The request() method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.