We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot version: Master 2a0de6d
OS/device including version: Windows 10
Issue description: Calling a coroutine in _ready() using await fails with error Trying to call an async function without "await".
_ready()
Trying to call an async function without "await".
Example script:
extends Node func _ready(): await get_tree().create_timer(1.0).timeout # works await _async_func_test() # fails func _async_func_test(): await get_tree().create_timer(1.0).timeout
Steps to reproduce:
Minimal reproduction project: script-await-ready.zip
The text was updated successfully, but these errors were encountered:
Fixed in #43890, closing.
Sorry, something went wrong.
I thought it was fixed, but I can actually still reproduce it in 68117f5.
same error,sample code:
extends Button func _ready(): await wait_confirmation() func wait_confirmation() -> void: print("Prompting user") await self.button_up # Waits for the button_up signal from Button node. print("User confirmed")
Run the code will give this error: Trying to call an async function without "await".
vnen
Successfully merging a pull request may close this issue.
Godot version:
Master 2a0de6d
OS/device including version:
Windows 10
Issue description:
Calling a coroutine in
_ready()
using await fails with errorTrying to call an async function without "await".
Example script:
Steps to reproduce:
Minimal reproduction project:
script-await-ready.zip
The text was updated successfully, but these errors were encountered: