{"repo":"gilzoide/godot-dispatch-queue","free":true,"listed":false,"github":"https://github.com/gilzoide/godot-dispatch-queue","clone":"git clone https://github.com/gilzoide/godot-dispatch-queue.git","description":"Threaded and synchronous Dispatch Queues for Godot","language":"GDScript","stars":65,"topics":["godot","godot-engine","thread-pool","dispatchqueue","dispatch-queues","concurrent-queues","gdscript"],"license":"CC0-1.0","category":"game-templates","readme_excerpt":"Dispatch Queue Warning This branch is only usable with Godot 4. For Godot 3 support, check out the godot-3 branch. Threaded or synchronous Dispatch Queues for Godot. Threaded Dispatch Queues are also known as Thread Pools. Available at the Asset Library as Dispatch Queue. Usage There is a Node script (addons/dispatch queue/dispatch queue node.gd) that wraps every aspect of dispatch queues. Useful for having a local queue in a scene or as an Autoload. There is also a Resource script (addons/dispatch queue/dispatch queue resource.gd) that wraps every aspect of dispatch queues. Useful for sharing queues with multiple objects between scenes without resorting to Autoload. API DispatchQueue (addons/dispatch queue/dispatch queue.gd): signal all tasks finished() - Emitted when the last queued Task finishes. This signal is emitted deferred, so it is safe to call non Thread-safe APIs. create serial() - Creates a Thread of execution to process tasks. If threading is not supported, fallback to synchronous mode. If queue was already serial, this is a no-op, otherwise calls shutdown and create a new Thread. create concurrent(thread count: int = 1) - Creates thread count Threads of execution to process tasks. If threading is not supported, fallback to synchronous mode. If queue was already concurrent with thread count Threads, this is a no-op, otherwise calls shutdown and create new Threads. If thread count Task - Create a Task for executing callable , optionally setting a priority On threa","default_branch":null,"files":null,"tree":[],"storefront":"/r/gilzoide","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gilzoide/godot-dispatch-queue/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}