pub fn spawn_after<F, T>(delay: Duration, future: F) -> JoinHandle<T>where F: Future<Output = T> + Send + 'static, T: Send + 'static,
spawn 一个延迟执行的任务(对齐 Swoole\Timer::after($ms, $callback))
Swoole\Timer::after($ms, $callback)
在 delay 后执行 future,返回 JoinHandle<T>。
delay
future
JoinHandle<T>