Skip to content

Releases: YetAnotherClown/ThreadPool

ThreadPool v1.0.0

23 Apr 04:54
Compare
Choose a tag to compare

ThreadPool

View docs

A library for creating Thread Pools to improve performance and reduce latency.


Thread Pooling

Thread Pooling reuses already existing threads instead of creating new threads every time you need to use one.

Why use this?

You shouldn't need to, unless you are creating multiple threads at a given time.

Usage

local ThreadPool = Require(ReplicatedStorage.Packages.ThreadPool)

local myThreadPool = ThreadPool.new()

myThreadPool:spawn(function(...)
        print(...) -- Prints "Hello World"
end, "Hello, world!")

Installing

Within your wally.toml file:

[dependences]
ThreadPool = "clownxz/[email protected]"

Building with Rojo

To build yourself, use:

rojo build -o "ThreadPool.rbxm"

For more help, check out the Rojo documentation.

v1.0.0-beta2

13 Mar 04:56
Compare
Choose a tag to compare
v1.0.0-beta2 Pre-release
Pre-release

v1.0.0-beta1

12 Mar 07:47
Compare
Choose a tag to compare
v1.0.0-beta1 Pre-release
Pre-release

ThreadPool

View docs

A library for creating Thread Pools to improve performance and reduce latency.


Thread Pooling

Thread Pooling reuses already existing threads instead of creating new threads every time you need to use one.

Why use this?

You shouldn't need to, unless you are creating multiple threads at a given time.

Usage

local ThreadPool = Require(path.to.module)

local myThreadPool = ThreadPool.new()

myThreadPool:spawn(function(...)
        print(...) -- Prints "Hello World"
end, "Hello, world!")

Building with Rojo

To build yourself, use:

rojo build -o "ThreadPool.rbxm"

For more help, check out the Rojo documentation.