caveful_games/threadpool
v0.2.1 ·
Execute the functions in a separate thread, threads are pooled and reused. Credit to lukadev-0/util.luau
English
threadpool
Executes the given function in a separate thread, threads are pooled and reused.
Features
- Very small and simple module, useful for optimizing
task.spawn
by reusing threads. - Original: util.luau/threadpool
- Removed
pure luau
,lune
support from the original. It has been simplified by not needing a separate module (std.task). - Supports executing functions in separate threads and reusing threads
Installation
From pesde
pesde add caveful_games/threadpool
Example Usage
threadpool(function()
...
end)