Skip to content

ProcessTools ​

Inherits: Node

Methods ​

ReturnsName
Callablethrottle ( callback: Callable, delay: int )
Varianttimed_signal ( target_signal: Signal, timeout: float )

Method Descriptions ​

throttle (callback: Callable , delay: int ) -> Callable ​

Calls the callback at most once every delay milliseconds. The first call runs right away. Calls that arrive inside the window are collapsed, and the latest one runs when the window ends, so the final value is never lost. Pending calls are dropped if the callback's object has been freed.

timed_signal (target_signal: Signal , timeout: float ) -> Variant ​

Waits for target_signal and returns its argument, or ERR_TIMEOUT if it doesn't emit within timeout seconds.