Latest 0.4
Homepage https://github.com/remirobert/WaitBlock
License MIT
Platforms ios 8.0
Frameworks Foundation
Authors

Wait🕟Block

shield.io shield.io shield.io

Simple utility for only executing code when you want.

This will only execute the block passed, if the last time it was called is greater than limit or it has never been called. Keep the last called in memory.

Each block are associated with a name. Wait🕟Block allows you to remove a specific block or clear the list.

Wait🕟Block.executeBlock("test", limitTimer: 3) { () -> () in
   // Put your fucking code here !!!
}

Wait🕟Block.resetTimer("test")
Wait🕟Block.resetAllTimer()

Installation

use_frameworks!
pod 'WaitBlock'

Latest podspec

{
    "name": "WaitBlock",
    "version": "0.4",
    "authors": {
        "Ru00e9mi ROBERT": "http://remirobert.github.io"
    },
    "homepage": "https://github.com/remirobert/WaitBlock",
    "summary": "Simple utility for only executing code when you want.",
    "source": {
        "git": "https://github.com/remirobert/WaitBlock.git",
        "tag": "0.4"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": "Foundation",
    "source_files": "WaitBlock/**/*.{swift}"
}

Pin It on Pinterest

Share This