Waiting a frame from a Resource

Godot Version

4.3.dev3

Question

How do I wait one frame or another short amount of time from a non-Node extending script? I don’t have access to the Timer node or the tree.

For context: I’m trying to make a one-liner awaitable HTTP Client, but I cant find a way of calling poll() without an infinite loop?

Ended up writing a Node wrapper around the class I needed and call .poll() on it every frame.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.