function delayedCall(duration, complete) {
    const tween = new Tween(complete, null, duration, 'linear', 0, complete);

    Tweens.push(tween);

    return tween;
}
Defers a function by the specified duration.

@export
@param {number} duration Time to wait in milliseconds.
@param {function} complete Callback function.
@returns {Tween}
@example
delayedCall(500, animateIn);
@example
delayedCall(500, () => animateIn(delay));
@example
timeout = delayedCall(500, () => animateIn(delay));