Skip to content

remirobert/WaitBlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Simple utility for only executing code when you want.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors