Skip to content

Conversation

@trflorian
Copy link
Contributor

The documentation for the HTTPClient node used the old yield syntax for waiting an idle frame. In Godot 4, this should be replaced with the new await syntax. The blocking OS.delay_msec on the non-web platforms should also be replaced with an asynchronous await statement.

…wait instead of synchronous OS delay also on non-web platforms
@mhilbrunner mhilbrunner added area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 cherrypick:4.1 cherrypick:4.2 labels Jan 2, 2024
@skyace65 skyace65 merged commit c20de5f into godotengine:master Jan 6, 2024
@skyace65
Copy link
Contributor

skyace65 commented Jan 6, 2024

Thanks! And congrats on your first merged PR!

mhilbrunner pushed a commit that referenced this pull request Jan 25, 2024
Replace yield with await in gd script for http client tutorial
@mhilbrunner
Copy link
Member

Cherry-picked to 4.2.

@trflorian trflorian deleted the http-client-await branch January 26, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.0 cherrypick:4.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants