Executes the given function in a separate thread, threads are pooled and reused.
- 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
pesde add caveful_games/threadpool
threadpool(function()
...
end)