Function grapeTimerR::timer::spawn_rt [−][src]
pub fn spawn_rt<F>(future: F) -> TResult<()> where
F: Future + Send + 'static,
F::Output: Send + 'static,
Used to use asynchronous tasks in Timer [用于在代码中使用异步任务]
Examples
use grapeTimerR::timer; timer::spawn_rt(async { println!("spawn on"); });