Is "call_deferred" serialized ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bob333

Hi,
If foo1 and foo2 are called in series using call_deferred is it guaranteed to be executed in series one after the other.

Example: Does executing the following function makes sure that foo1 execution is completed before calling foo2 ?

func some_func():
    call_deferred("foo1")
    call_deferred("foo2")
:bust_in_silhouette: Reply From: Zylann

I think they will execute in the same order yeah. They are scheduled on the scene tree’s MessageQueue, and dequeued as they were called.