Skip to content

ainame/Swift-Daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift-Daemon

You can daemonize any swift process. Daemon can detach your swift script from shell.

import Foundation
import Daemon

DispatchQueue(label: "foo").async {
    while true {
        print(".")
        sleep(1)
    }
}

Daemon.daemonize()

while true {
    sleep(1)
}

About

daemonize your swift scripts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages