Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ainame/Swift-Daemon

daemonize your swift scripts
https://github.com/ainame/Swift-Daemon

Last synced: about 1 month ago
JSON representation

daemonize your swift scripts

Awesome Lists containing this project

README

        

## Swift-Daemon

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

```swift
import Foundation
import Daemon

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

Daemon.daemonize()

while true {
sleep(1)
}
```