Struct fence::Fence [] [src]

pub struct Fence { /* fields omitted */ }

Methods

impl Fence
[src]

Fence provides a timed rate limiter. It's useful for imposing a framerate cap on a UI thread.

In a typical usage, place a fence at the end of a loop to control the invocation rate.

Construct a fence from the specified seconds.

Construct a fence from the specified milliseconds.

Construct a fence from the given duration.

Sleep the current thread until at least the specified passage of time.