godot-rust / gdext

Rust bindings for Godot 4
https://mastodon.gamedev.place/@GodotRust
Mozilla Public License 2.0
2.97k stars 184 forks source link

GDScriptFunctionState, Async implementation. #868

Closed darthLeviN closed 1 week ago

darthLeviN commented 3 weeks ago

My suggestion is to expose GDSCriptFunctionState and implement Future for it or it's wrappers.

I wanted to do this but i read that i should make an issue and discuss it first because it's big change.

Is this a useful thing to enable seamless await/async calls in the future?

TitanNano commented 3 weeks ago

GDSCriptFunctionState exposes a connected signal, so if #261 gets implemented, we can convert the function state into a signal future.

Bromeon commented 1 week ago

Please continue discussion under #261, there are ongoing ideas/efforts.