scheduleTask(deadline:_:)
Schedule a task
that is executed by this EventLoop
at the given time.
@discardableResult @preconcurrency func scheduleTask<T>(deadline: NIODeadline, _ task: @escaping () throws -> T) -> Scheduled<T>
Parameters
Returns
A Scheduled
object which may be used to cancel the task if it has not yet run, or to wait on the completion of the task.