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
Copy file name to clipboardExpand all lines: Sources/CaffeineKit/Caffeination.swift
+12-4
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,10 @@ import Cocoa
11
11
/// An instance of a sleep-prevention session.
12
12
publicclassCaffeination{
13
13
14
-
/// An customization option for a `Caffeination`.
14
+
/**
15
+
A customization option for a `Caffeination`.
16
+
- Note: Any given `Caffeination` can be passed only **one** of each `Opt`. So, for instance, it is valid to pass a `.timed` and `.process` Opt; however, it is not possible to have two different `.process` Opts.
17
+
*/
15
18
publicenumOpt{
16
19
/// Prevents disk idle sleep.
17
20
case disk
@@ -230,8 +233,7 @@ public class Caffeination {
230
233
- safety: Whether to enable safety measures to ensure that no "zombie" `caffeinate` processes can outlive the current application. Set to `true` by default, which is recommended.
231
234
- terminationHandler: A handler that will be called when the Caffeination stops. Will be set to `nil` if the parameter is not specified.
0 commit comments