Skip to main content

new

Function new 

Source
pub fn new(timeout: Duration, opts: Vec<Option>) -> Model
Expand description

New creates a new timer with the given timeout and default 1s interval.