Extension (Enumeration)swift-nio 2.74.0all tags
Optional (ext)
You’re viewing third-party extensions to Optional
, an enum from the Swift standard library.
You can also read the documentation forOptional
itself.
extension Optional
Extension in NIOCore
Instance members
func setOrCascade<Value>(to: EventLoopPromise<Value>?
) Sets or cascades the future result of self to the provided promise, if present.
Extension in NIOCore
where Wrapped == ByteBuffer
Instance members
func setOrWriteBuffer(inout ByteBuffer
) -> Int If
nil
, replaceself
with.some(buffer)
. If non-nil
, writebuffer
’s readable bytes into theByteBuffer
starting atwriterIndex
.func setOrWriteImmutableBuffer(ByteBuffer
) -> Int If
nil
, replaceself
with.some(buffer)
. If non-nil
, writebuffer
’s readable bytes into theByteBuffer
starting atwriterIndex
.