TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✓ |
Maintained by Adrian Bobrowski.
pod try AsyncTimer
.Package(url: "https://github.com/Decybel07/AsyncTimer.git", majorVersion: 2)
Counts down from 25 to 0 every 100 ms
AsyncTimer(
interval: .milliseconds(100),
times: 25,
block: { value in
print(value)
},
completion: { value in
print("finished")
}
)
Update every 100 ms
AsyncTimer(interval: .milliseconds(100), repeats: true) {
print("updated")
}
Do something after 2 seconds
AsyncTimer(interval: .seconds(2)) {
print("something to do")
}
Adrian Bobrowski (Decybel07), [email protected]
AsyncTimer is available under the MIT license. See the LICENSE file for more info.