Skip to content

Delay and lock method calls in WoW lua

Notifications You must be signed in to change notification settings

Jaliborc/MutexDelay-1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

MutexDelay-1.0 ⌚

Patreon Paypal Discord

Straightforward library that allows to easily delay a method call, and to avoid multiple sources making unnecessary multiple calls to the same function for efficiency. Hence, behaves like a mutex over delayed code.

API Overview

Name Description
:Embed(object) Adds the library methods to your object.
:Delay(time, method [,args]) Calls the given method after a certain time with the given args. Locks the method from further calls until complete.
:Delaying(method) Whether the method is currently locked from further calls.

⚠️ Reminder!

If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! 👍