frostproject/threadpool
Pseudo code threadpool implementation for Luau to manage concurrent task execution.
threadpool
Pseudo code threadpool implementation for Luau to manage concurrent task execution
This library implements a very simple threadpool, which typically refers to a system for reusing a limited number of threads to execute many tasks concurrently. However, in Luau and Roblox, real multithreading can not be achieved. This is pseudo code purely for code organization. It does not provide actual performance improvements or parallelism. While it hasn’t been thoroughly tested or benchmarked, it's highly unlikely to provide any measurable benefit.
🚀 Usage
📦 Installation
pesde add frostproject/threadpool
🧰 API Reference
threadpool.spawn
threadpool.spawn(
callback: (T...) → (), -- Function to run within the new thread
...: T... -- Arguments passed to the callback
) → ()
🧪 For Development and Contribution
Please read CONTRIBUTING.md guide if you want to contribute improvements to the library itself or forking it for personal use without starting a fresh project.