Merge pull request #3 from emisvx/master Updating to Swift 5.
Merge pull request #3 from emisvx/master
Updating to Swift 5.
pod try AsyncTimer
pod 'AsyncTimer', '~> 2.2'
github "Decybel07/AsyncTimer", ~> 2.2
.Package(url: "https://github.com/Decybel07/AsyncTimer.git", majorVersion: 2)
Import AsyncTimer at the top of each Swift file that will use framework.
import AsyncTimer
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), adrian071993@gmail.com
AsyncTimer is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
AsyncTimer
🌟 Features
Overview
💻 Demo
⚠️ Requirements
👥 Communication
📗 Installation
CocoaPods
Carthage
Swift Package Manager
📘 Usage
Import AsyncTimer at the top of each Swift file that will use framework.
Countdown Timer
Counts down from 25 to 0 every 100 ms
Periodic Timer
Update every 100 ms
Scheduled Timer
Do something after 2 seconds
🤓 Author
Adrian Bobrowski (Decybel07), adrian071993@gmail.com
🔑 License
AsyncTimer is available under the MIT license. See the LICENSE file for more info.