 
 import Foundation
 
+/// Defines the notification key for caffeine task updates.
 let caffeineTaskStatusChangedNotificationKey = "io.raphaelhanneken.espresso.caffeinateTaskStatusChanged"
 
 /// Manages the caffeinate task.

    caffeinate.launchPath = "/usr/bin/caffeinate"
    caffeinate.arguments  = ["-diu"]
    caffeinate.launch()
    // Assign the caffeinate property to out caffeinate task.
    return caffeinate
  }
}

  /// Holds a reference to the caffeinate task.
  private var caffeine: Task?

  /// Checks whether a caffeinate task is currently running.
  var active: Bool {
    guard let status = caffeine?.isRunning else {
      return false
