Home Reference Source

References

summary
public

F delay(ms: Number, args: ...): Promise

delays the call to nextFrame with setTimeout

public

F frame(args: ...): Promise

create a Promise that resolves in the next Animationframe

public

create an animationframe loop that calls a function (callback) in every frame

public

F nextFrame(args: ...): Promise

create a Promise that resolves in the next Animationframe

public

F sequence(collection: Array, fn: Function): Promise

call a function sequencely every next frame on every iterating position of an array

public

F throttle(cb: Function, frames: Number): Function

create a throttled animationframe loop that calls a function (callback) in every specified

public

F until(fn: Function, args: ...): Promise

until fn returns a truthy value do not resolve.

public

F wait(frame: Number, args: ...): Promise

waiting x frames before the Promise will resolve

public

F when(fn: Function, args: ...): Promise

resolve when fn returns a truthy value.