AsyncTimer alternatives and similar libraries
Based on the "Thread" category.
Alternatively, view AsyncTimer alternatives based on common mentions on social networks and blogs.
-
Schedule
DISCONTINUED. Schedule timing task in Swift using a fluent API. (A friendly alternative to Timer) -
Async.legacy
Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch (iOS7+ and OS X 10.9+ compatible) -
EKI
DISCONTINUED. Make Grand Central Dispatch easy and fun to use (queue, task, group, timer and semaphore).
InfluxDB high-performance time series database

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of AsyncTimer or a related project?
README
AsyncTimer
๐ Features
- [x] Can work as a countdown timer
- [x] Can work as a periodic Timer
- [x] Can work as a scheduled timer
- [x] Working with user events (like: scrolling, tapping, ...)
- [x] Functionality (start, pause, resume, stop, restart)
- [x] Support for clousure (never more selectors)
Overview
๐ป Demo
pod try AsyncTimer
โ ๏ธ Requirements
- iOS 9.0+ | macOS 10.10+ | tvOS 9.0+ | watchOS 2.0+
- Swift 3.0+
๐ฅ Communication
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
๐ Installation
CocoaPods
pod 'AsyncTimer', '~> 2.2'
Carthage
github "Decybel07/AsyncTimer", ~> 2.2
Swift Package Manager
.Package(url: "https://github.com/Decybel07/AsyncTimer.git", majorVersion: 2)
๐ Usage
Import AsyncTimer at the top of each Swift file that will use framework.
import AsyncTimer
Countdown Timer
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")
}
)
Periodic Timer
Update every 100 ms
AsyncTimer(interval: .milliseconds(100), repeats: true) {
print("updated")
}
Scheduled Timer
Do something after 2 seconds
AsyncTimer(interval: .seconds(2)) {
print("something to do")
}
๐ค Author
Adrian Bobrowski (Decybel07), [email protected]
๐ License
AsyncTimer is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the AsyncTimer README section above
are relevant to that project's source code only.