RepeatedTask
Returned once a task was scheduled to be repeatedly executed on the EventLoop
.
final class RepeatedTask
A RepeatedTask
allows the user to cancel()
the repeated scheduling of further tasks.
See also
protocol EventLoopGroup
Provides an endless stream of
EventLoop
s to use.protocol EventLoop
An EventLoop processes IO / tasks in an endless loop for
Channel
s until it’s closed.enum NIOEventLoopGroupProvider
This type is intended to be used by libraries which use NIO, and offer their users either the option to
.share
an existing event loop group or create (and manage) a new one (.createNew
) and let it be managed by given library and its lifecycle.struct EventLoopIterator
An iterator over the
EventLoop
s forming anEventLoopGroup
.struct Scheduled<T>
Returned once a task was scheduled on the
EventLoop
for later execution.struct NIOLoopBound<Value>
NIOLoopBound
is an always-Sendable
, value-typed container allowing you access tovalue
if and only if you are accessing it on the rightEventLoop
.class NIOLoopBoundBox<Value>
NIOLoopBoundBox
is an always-Sendable
, reference-typed container allowing you access tovalue
if and only if you are accessing it on the rightEventLoop
.
Citizens in NIOCore
Conformances
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Instance members
func cancel(promise: EventLoopPromise<Void>?
) Try to cancel the execution of the repeated task.