Skip to content

GraphCall

Inherits: RefCounted < Object

One run of a graph function that is waiting to finish.

A call to a graph function that stops at a step that waits, such as a delay or a wait for a signal, returns a GraphCall in place of a result. The call keeps the place where it stopped. It carries on when the thing it waits for happens.

Connect to completed to get the result. A call is dropped, without emitting completed, when its instance is freed or its script changes.

A function that does not wait returns its result at once and no call is made.

completed

completed(result: Variant)

Emitted when the function ends. result is the value the function returned, or null when it returns nothing.