A library for creating Thread Pools to improve performance and reduce latency.
Warning
ThreadPool is archived, but is it fully complete. There are no features to add, no known bugs for years, etc. It's still recommended to use, but I will no longer be maintaining it, not that it has needed any maintenance.
If there is something you want to add, fix, etc. you may fork it, make your changes, and distribute it however you wish.
Thread Pooling reuses already existing threads instead of creating new threads every time you need to use one.
You shouldn't need to, unless you are creating multiple threads at a given time.
local ThreadPool = Require(ReplicatedStorage.Packages.ThreadPool)
local myThreadPool = ThreadPool.new()
myThreadPool:spawn(function(...)
print(...) -- Prints "Hello World"
end, "Hello, world!")Within your wally.toml file:
[dependences]
ThreadPool = "yetanotherclown/threadpool@1.0.0"To build yourself, use:
rojo build -o "ThreadPool.rbxm"For more help, check out the Rojo documentation.