Required Instance Methodswift-nio 2.80.0NIOCore

_submitIsolatedUnsafeUnchecked(_:)

Submit a given task to be executed by the ``EventLoop```, from a context where the caller statically knows that the context is isolated.

EventLoop.swift:419
func _submitIsolatedUnsafeUnchecked<T>(_ task: @escaping () throws -> T) -> EventLoopFuture<T>

Parameters

task

The closure that will be submitted to the EventLoop for execution.

Returns

EventLoopFuture that is notified once the task was executed.

Once the execution is complete the returned EventLoopFuture is notified.

This is an optional performance hook. EventLoop implementers are not required to implement this witness, but may choose to do so to enable better performance of the isolated EL views. If they do so, EventLoop/Isolated/submit will perform better.