[Doc] Clarify some details about deferred calls

This commit is contained in:
A Thousand Ships
2024-02-28 14:34:13 +01:00
parent df78c0636d
commit 1cc5b0aa0d
2 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@
}
[/csharp]
[/codeblocks]
[b]Note:[/b] Deferred calls are processed at idle time. Idle time happens mainly at the end of process and physics frames. In it, deferred calls will be run until there are none left, which means you can defer calls from other deferred calls and they'll still be run in the current idle time cycle. This means you should not call a method deferred from itself (or from a method called by it), as this causes infinite recursion the same way as if you had called the method directly.
See also [method Object.call_deferred].
</description>
</method>