You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build takes a lot of time, we need to add functionality to avoid sleep.
But forth to consider sleep and display sleep are different things, so may be this is not needed of mac not going to sleep with desplay off
Can be done like this:
var assertionID: IOPMAssertionID = 0
let assertResult = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep as CFString,
IOPMAssertionLevel(kIOPMAssertionLevelOn),
"Long runnign job" as CFString,
&assertionID)
defer {
IOPMAssertionRelease(assertionID)
}
logger.info("Requested system not to sleep with result \( assertResult == kIOReturnSuccess ? "success" : "failure" )")
The text was updated successfully, but these errors were encountered:
Build takes a lot of time, we need to add functionality to avoid sleep.
But forth to consider sleep and display sleep are different things, so may be this is not needed of mac not going to sleep with desplay off
Can be done like this:
The text was updated successfully, but these errors were encountered: