Function relm::timeout

source ·
pub fn timeout<F: Fn() -> MSG + 'static, MSG: 'static>(
    stream: &StreamHandle<MSG>,
    duration: u32,
    constructor: F
)
Expand description

After duration ms, emit msg.