Struct raf::AnimationFrameScheduler [−][src]
pub struct AnimationFrameScheduler<Cb>(_);
Expand description
Owns a WebRuntime
and schedules its execution using
requestAnimationFrame
.
Implementations
Construct a new scheduler with the provided callback. ticker.tick()
will be called once per fulfilled animation frame request.
Consumes the scheduler to initiate a requestAnimationFrame
callback
loop where new animation frames are requested immmediately after the
last moxie::Revision
is completed. WebRuntime::run_once
is
called once per requested animation frame.
Consumes the scheduler to initiate a requestAnimationFrame
callback
loop where new animation frames are requested whenever the waker
passed to the provided closure is woken.
Trait Implementations
Indicates that the associated task is ready to make progress and should
be poll
ed. Read more