Merge pull request #102521 from HolonProduction/cancel-await

GDScript: Cancel suspended functions when reloading a script
This commit is contained in:
Thaddeus Crews 2025-04-08 12:32:52 -05:00
commit 4248411baf
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
7 changed files with 51 additions and 15 deletions

View file

@ -615,6 +615,13 @@ public:
bool is_valid(bool p_extended_check = false) const;
Variant resume(const Variant &p_arg = Variant());
#ifdef DEBUG_ENABLED
// Returns a human-readable representation of the function.
String get_readable_function() {
return state.function_name;
}
#endif
void _clear_stack();
void _clear_connections();