Created
October 21, 2025 20:13
-
-
Save ParadoxV5/d936d32eaef196f13e106aa99a66865d to your computer and use it in GitHub Desktop.
await await await await
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Timer | |
| func await_await() -> Signal: | |
| print("await signal") | |
| await timeout | |
| print("await return") | |
| return timeout | |
| func _enter_tree() -> void: | |
| print("await start") | |
| ## method call → signal | |
| await await await_await() | |
| print("await done") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gd_scene load_steps=2 format=3] | |
| [ext_resource type="Script" path="res://await_await.gd" id="await_await"] | |
| [node name="Await Await" type="Timer"] | |
| autostart = true | |
| script = ExtResource("await_await") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I prefer the Observer pattern – Signal#connecting
Callables.