Skip to main content

Threader

Promise based Actor wrapper.

Easy to Use

Threader was made to make working with Actors easier and overall tie everything together.

Promise Based

Threader is Promise based. Promises are a great way to observe different threads, handle errors.

Send Data Get Data

Once Threader had dispatched the work and all the threads had finished, it will return all of the data that the threads had returned.

Creating a Threader Class

Creating a Threader class is very simple. The first argument is always how many threads are there initially and the last one is the ThreadWorker itself.

Creating a ThreadWorker

A ThreadWorker is a ModuleScript that is used to process the data in all of the threads once Threader:Dispatch() was called.

Get the Data Back

Getting the data back from all of the threads is very simple! Since Threader is Promise based after calling Threader:Dispatch() a Promise will be returned that will resolve once all of the threads had completed or gets rejected if any error occurs!