Skip to content

This add-on helps GDScript pseudo-asynchronous scripting, including a set of classes to handle future-determined values through a shared interface.

License

Notifications You must be signed in to change notification settings

ydipeepo/gdut-task

Repository files navigation


GDUT Task GDUT Task

Release MIT

This add-on helps GDScript pseudo-asynchronous scripting, including a set of classes to handle future-determined values through a shared interface.

var result = await Task.wait_all(
	my_method,
	my_signal,
	Task.any(
		my_another_method,
		my_another_signal))

Objective

It was created for the following purposes:

  • Transform scripts in callback hell into intuitive flows.
  • Make script (with scene) dependencies unidirectional toward the scene.
  • Perform safe and unified await-ing through a shared Task interface.

Quick start

Installation

  1. git clone https://github.com/ydipeepo/gdut-task.git or download release.
  2. Then copy addons/gdut-task directory into your project.
  3. And enable GDUT Task from your project settings.

License

All contents of this project are licensed under the attached 🔗 MIT license.

Attribution

Attribution is not required, but appreciated. If you would like to credit, please attribute to "Ydi".


About

This add-on helps GDScript pseudo-asynchronous scripting, including a set of classes to handle future-determined values through a shared interface.

Topics

Resources

License

Stars

Watchers

Forks