{"repo":"SoulsTogetherX/GodotPromise","free":true,"listed":false,"github":"https://github.com/SoulsTogetherX/GodotPromise","clone":"git clone https://github.com/SoulsTogetherX/GodotPromise.git","description":"A Godot addon that provides functionality to control and sync coroutines with Promises similar to JavaScript. Processes Signals, Callables, other Promises, and all other types.","language":"GDScript","stars":48,"topics":["game-development","godot","godot-addon","javascript","promise-api"],"license":"MIT","category":"game-templates","readme_excerpt":"GodotPromise GodotPromise is a Godot 4.5+ addon created to improve how people use async Callables and Signals. It primarily uses the javascript Promise type as inspiration. Look here for knowledge on Use Promises, Promise Chains, and Common Mistakes. Quick Reference Here is a quick reference of the tools provided for this addon. Construction Methods These methods are used to construct useable Promises. Name Arguments Use Result Reject Resolve --------------------- -------------------------------------------- ------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- ------------------------------ ------------------------------------------------------- new() Any The basic constructor for Promises Returns the same result as 'await' would Never Always all() An array of Promises Awaits for all Promises to finish Returns an array of values, from the Promises, once they all resolve If any Promise rejects If all Promises resolve allSettled() An array of Promises Provides the state of all Promises after finishing Returns an array of integer values representing the rejected or resolved states of all given Promises Never Always race() An array of Promises Finishes when the first of the provided Promises finish Returns the result of the first finished Promise If the first Promise rejects If the first Promise resolves any() An array of Promises Finishes when th","default_branch":null,"files":null,"tree":[],"storefront":"/r/SoulsTogetherX","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SoulsTogetherX/GodotPromise/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."}