MutexDelay-1.0

MutexDelay-1.0

273 Downloads

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! 👍