Function relm::timeout [] [src]

pub fn timeout<F: Fn() -> MSG + 'static, MSG: 'static>(
    stream: &EventStream<MSG>,
    duration: u32,
    constructor: F
)

After duration ms, emit msg.