flatScheduleTask(in:file:line:_:)

    Schedule a task that is executed by this EventLoop after the given amount of time.

    EventLoop.swift:803
    @discardableResult @preconcurrency func flatScheduleTask<T>(in delay: TimeAmount, file: StaticString = #fileID, line: UInt = #line, _ task: @escaping () throws -> EventLoopFuture<T>) -> Scheduled<T>

    Parameters

    task

    The asynchronous task to run. As everything that runs on the EventLoop, it must not block.

    Returns

    A Scheduled object which may be used to cancel the task if it has not yet run, or to wait on the full execution of the task, including its returned EventLoopFuture.

    Other members in extension

    Instance members

    Show implementation details (3)

    Hide implementation details

    Show obsolete interfaces (2)

    Hide obsolete interfaces