Function tokio_js_set_interval::_set_timeout[][src]

pub async fn _set_timeout(f: impl Fn(), ms: u64)
Expand description

INTERNAL Use macro set_timeout instead!

Creates a future that glues the tokio sleep function (timeout) together with the provided callback.