TaskLib is a small library i made long time ago for personal use when messing with Payday 2 code. I decided it could be useful for other people so i polished it up and released to public.
The goal of TaskLib is to provide a seamless way to run code asynchronously within the Payday 2 environment. It allows you to easily manage loops, delays, and timed events without cluttering your update hooks or causing the game to freeze.
Full documentation can be found on my github page:here - please read before using!
Note: This library may receive new features over time, so please feel free to propose your ideas! If you run into any trouble while using it, don't forget to report the issues so I can get them fixed.
You are more than welcome to include this library in your own mods! All I ask is that you provide a small credit or link to this page in your mod description. Thatβs all! (: