Function grapeTimerR::timer::block_on_rt[][src]

pub fn block_on_rt<F>(future: F) -> TResult<()> where
    F: Future,
    F::Output: Send + 'static, 

Used to use asynchronous tasks in Timer [用于在代码中使用异步任务]

Examples

use grapeTimerR::timer;
timer::block_on_rt(async {
    println!("block on");
});