Skip to content

Execute the functions in a separate thread, threads are pooled and reused.

License

Notifications You must be signed in to change notification settings

CavefulGames/threadpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Execute the functions in a separate thread, threads are pooled and reused.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages