<preclass='rust fn'>pub fn timeout_add<F>(interval: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, func: F) -><aclass="struct"href="../glib/source/struct.SourceId.html"title="struct glib::source::SourceId">SourceId</a><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>() -><aclass="struct"href="../gtk/struct.Continue.html"title="struct gtk::Continue">Continue</a> + 'static, </span></pre><divclass='docblock'><p>Adds a closure to be called by the default main loop at regular intervals
with millisecond granularity.</p>
<p><code>func</code> will be called repeatedly every <code>interval</code> milliseconds until it
returns <code>Continue(false)</code>. Precise timing is not guaranteed, the timeout may
be delayed by other events. Prefer <code>timeout_add_seconds</code> when millisecond
precision is not necessary.</p>
<p>Similar to <code>glib::timeout_add</code> but only callable from the main thread and