Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjosolutions/luayielder
A library for helping with yielding in long-running processes.
https://github.com/sanjosolutions/luayielder
wow wow-addon wow-addon-lib
Last synced: 5 days ago
JSON representation
A library for helping with yielding in long-running processes.
- Host: GitHub
- URL: https://github.com/sanjosolutions/luayielder
- Owner: SanjoSolutions
- License: unlicense
- Created: 2022-12-22T22:07:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T17:17:03.000Z (about 1 year ago)
- Last Synced: 2024-05-01T19:25:56.246Z (8 months ago)
- Topics: wow, wow-addon, wow-addon-lib
- Language: Lua
- Homepage: https://www.patreon.com/addons_by_sanjo
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yielder
A library for helping with yielding in long-running processes. This library can save add-on developers some work.
## Things included
* **Yielder.yieldAndResume**: a function for yielding and scheduling a resume. Can only be used in coroutines.
* **Yielder.createYielder**: a function which creates a yielder. The yielder has the methods "yield" and "resume".
* **Yielder.createYielderWithTimeTracking**: a function which creates a yielder with time tracking. In addition to the yielder that is created by "Yielder.createYielder", this yielder has the methods "hasRunOutOfTime" and "yieldAndResumeWhenHasRunOutOfTime".