TimeQueue¶
- component fbx.async.TimeQueue¶
Deferred filling the missing setTimeout.
This component uses a
QtQuick.Timeras low-level interface for implementation of time-basedDeferred.Deferred().The only available call is
wait().- method wait(timeout)¶
- Parameters
timeout (
int) – Time to wait for, in milliseconds
This creates a new
Deferred.Deferred()that will be resolved in timeout milliseconds from now:Item { TimeQueue { id: tq } function doSomethingIn200ms() { return tq.wait(200).then(doSomething); } }