iOS reference / Foundation / URLSession.AsyncBytesFoundation · IOS API REFERENCE
URLSession.AsyncBytes struct · iOS 15.0+ · SDK 27.1
struct AsyncBytesAsyncBytes conforms to AsyncSequence for data delivery. The sequence is single pass. Delegate will not be called for response and data delivery.
Members (2) method · iOS 15.0+ makeAsyncIterator TypeScript makeAsyncIterator(): URLSession_AsyncBytes_IteratorSwift declaration func makeAsyncIterator() -> URLSession.AsyncBytes.IteratorCreates the asynchronous iterator that produces elements of this
asynchronous sequence.
- Returns: An instance of the `AsyncIterator` type used to produce
elements of the asynchronous sequence.
get · iOS 15.0+ task TypeScript get task(): URLSessionDataTaskSwift declaration var task: URLSessionDataTask { get }Underlying data task providing the bytes.
Skipped declarations No declarations were skipped in this snapshot.
All Foundation types →