Initializerswift-nio 2.72.0NIOCore
init(_:eventLoop:)
Initialise a NIOLoopBoundBox
to value
with the precondition that the code is running on eventLoop
.
convenience init(_ value: Value, eventLoop: EventLoop)
Other members in extension
Type members
static func makeBoxSendingValue(Value, as: Value.Type, eventLoop: EventLoop
) -> NIOLoopBoundBox<Value> Initialise a
NIOLoopBoundBox
by sending aSendable
value, validly callable offeventLoop
.static func makeEmptyBox<NonOptionalValue>(valueType: NonOptionalValue.Type, eventLoop: EventLoop
) -> NIOLoopBoundBox<Value> Initialise a
NIOLoopBoundBox
that is empty (containsnil
), this does not require you to be running oneventLoop
.
Instance members
var value: Value
Access the
value
with the precondition that the code is running oneventLoop
.