blob: 8f3ec945f6912244f102b344c9bfcf53e931b39f [file] [log] [blame]
{
"name": "kron",
"version": "1.2.2",
"summary": "Timers made easy. (debounce, idle, watchdog and more!)",
"description": "Kron is a NSTimer manager offering 4 modes through a unified api. Kron takes care of the involved implementation of NSTimers while ensuring a proper memory management with no extra effort:\n\nKron.debounce: Calls immediatly and reject calls until time out elapses\nKron.debounceLast: As debounce but also performs the last call after time out\nKron.idle: Performs the last call after not being called during the timeout interval\nKron.watchdog: As idle but allowing to be canceled with watchDogCancel\nWhy Kron?\n\nInstead of returning a timer object, Kron manages the Timer instances internally through a [KronKey : Timer] dictionary. This makes easy to call Kron from distant components or threads accesing the timers by their key value.\n\nThe KronKey can be etiher a String struct or AnyObject instance. If an object is passed the key is inferred from the object's pointer. Calling the methods with the same key causes all timer modes to be reset.\n\nAs the intention is to facilitate calling Kron from distant implementations you can optional pass a context value ctx. A context can be Any struct or class instance and it's internally wrapped with a weak reference to prevent retain cycles. The context is then optionally passed to the timeOut closure.",
"homepage": "https://github.com/eonfluxor/kron",
"license": "MIT",
"authors": {
"Eonflux - Hassan Uriostegui": "eonflux@gmail.com"
},
"social_media_url": "http://twitter.com/eonfluxor",
"platforms": {
"ios": "9.0",
"osx": "10.9",
"tvos": "9.0"
},
"source": {
"git": "https://github.com/eonfluxor/kron.git",
"tag": "v1.2.2"
},
"source_files": "Kron/Sources/**/*.swift",
"swift_version": "4.1"
}