Initializerswift-openapi-runtime 1.6.0OpenAPIRuntime
init(_:)
Creates a new sequence with the provided async stream.
MultipartPublicTypes.swift:297convenience init(_ stream: AsyncStream<Element>)
Parameters
- stream
An async stream that provides the parts.
Other members in extension
Types
struct Iterator
An async iterator of both input async sequences and of the sequence itself.
Typealiases
typealias ArrayLiteralElement
typealias AsyncIterator
Represents an asynchronous iterator over a sequence of elements.
typealias Element
The type of the element.
Type members
init(AsyncThrowingStream<Element, any Error>
) Creates a new sequence with the provided async throwing stream.
init(some Collection<Element> & Sendable
) Creates a new sequence with the provided collection of parts.
init<Input>(Input, iterationBehavior: IterationBehavior
) Creates a new sequence with the provided async sequence of parts.
init(arrayLiteral: Element...
) static func == (lhs: MultipartBody, rhs: MultipartBody
) -> Bool Compares two OpenAPISequence instances for equality by comparing their object identifiers.
Instance members
func hash(into: inout Hasher
) Hashes the OpenAPISequence instance by combining its object identifier into the provided hasher.
func makeAsyncIterator(
) -> AsyncIterator Creates and returns an asynchronous iterator