openStream(directionality:)
Initiate a new data stream over QUIC. When invoked with no parameters, the default stream type will be bidirectional. Unidirectional streams can be initiated by setting the optional bidirectional parameter to false.
Declaration
final func openStream(directionality: QUICStream.Directionality = .bidirectional) async throws -> QUIC.Stream<QUICStream>Discussion
This call will start the underlying QUIC connection if it has not been started already and will block until the QUIC connection is ready.
While streams can be cancelled independently of the underlying connection, if the parent NetworkChannel is cancelled or fails, the streams will as well.