One Logo Pool Ball
Foundation · IOS API REFERENCE

URLSession.AsyncBytes

struct · iOS 15.0+ · SDK 27.1

struct AsyncBytes

AsyncBytes 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_Iterator
Swift declaration
func makeAsyncIterator() -> URLSession.AsyncBytes.Iterator

Creates 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(): URLSessionDataTask
Swift declaration
var task: URLSessionDataTask { get }

Underlying data task providing the bytes.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →