WaitBlock 0.4

WaitBlock 0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2015
SPMSupports SPM

Maintained by remi robert.



  • By
  • Rémi ROBERT

Wait🕟Block

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'