Ignore:
Timestamp:
Oct 12, 2018 8:52:24 PM (20 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
5f07789
Parents:
d8cfe21e
Message:

OSX Launcher: Extended start/stop/load/unload to be able to set terminationHandler for more reliable execution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/Utils/LaunchAgent+Status.swift

    rd8cfe21e r1a00f73  
    3535  ///
    3636  /// Check the status of the job with `.status()`
    37   public func start() {
    38     LaunchAgentManager.shared.start(self)
     37  public func start(_ callback: ((Process) -> Void)? = nil ) {
     38    LaunchAgentManager.shared.start(self, callback)
    3939  }
    4040 
     
    4242  ///
    4343  /// Check the status of the job with `.status()`
    44   public func stop() {
    45     LaunchAgentManager.shared.stop(self)
     44  public func stop(_ callback: ((Process) -> Void)? = nil ) {
     45    LaunchAgentManager.shared.stop(self, callback)
    4646  }
    4747 
Note: See TracChangeset for help on using the changeset viewer.