Initializerswift-openapi-runtime 1.6.0OpenAPIRuntime
init(_:)
Creates a new sequence with the provided async throwing stream.
MultipartPublicTypes.swift:291convenience init(_ stream: AsyncThrowingStream<Element, any Error>)
Parameters
- stream
An async throwing 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(AsyncStream<Element>
) Creates a new sequence with the provided async 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