Instance Propertyswift-nio 2.84.0NIOCore
writer
The writer
which is the actual NIOAsyncWriter
and should be passed to the producer.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
let writer: NIOAsyncWriter<Element, Delegate>
The writer
which is the actual NIOAsyncWriter
and should be passed to the producer.
let writer: NIOAsyncWriter<Element, Delegate>
import NIOCore
The core abstractions that make up SwiftNIO.
struct NewWriter
Simple struct for the return type of makeWriter(elementType:isWritable:delegate:)
.
struct NIOAsyncWriter<Element, Delegate> where Element == Delegate.Element, Delegate : NIOAsyncWriterSinkDelegate
A NIOAsyncWriter
is a type used to bridge elements from the Swift Concurrency domain into a synchronous world. The Task
s that are yielding to the NIOAsyncWriter
are the producers. Whereas the NIOAsyncWriterSinkDelegate
is the consumer.
let sink: NIOAsyncWriter<Element, Delegate>.Sink
The sink
which MUST be retained by the consumer and is used to set the writability.