Instance Propertyswift-nio 2.84.0NIOCore
value
Access the value
with the precondition that the code is running on eventLoop
.
var value: Value { get set }
Access the value
with the precondition that the code is running on eventLoop
.
var value: Value { get set }
import NIOCore
The core abstractions that make up SwiftNIO.
struct NIOLoopBound<Value>
NIOLoopBound
is an always-Sendable
, value-typed container allowing you access to value
if and only if you are accessing it on the right EventLoop
.
init(_ value: Value, eventLoop: any EventLoop)
Initialise a NIOLoopBound
to value
with the precondition that the code is running on eventLoop
.
let eventLoop: any EventLoop
The EventLoop
that the value is bound to.
var _eventLoop: any EventLoop { get }