Instance Property インスタンスプロパティ

prefersIncrementalDelivery

A Boolean value that determines whether to deliver a partial response body in increments. あるブール値、それは部分的返答本文を増分として配達するかどうかを決定します。

Declaration 宣言

var prefersIncrementalDelivery: Bool { get set }

Discussion 議論

Set this property to true to tell the task that the app would benefit from receiving a partial response body in increments. If the app can’t process the response until it has all the data, set this property to false. Task performance may improve when this value is false, in which case the task only delivers data when complete. このプロパティをtrueに設定することで、そのアプリは部分的応答本文を増分として受け取ることから利益を得るであろうことを、タスクに知らせてください。アプリが応答を処理することをそれが全データを得るまで可能でないならば、このプロパティをfalseに設定してください。タスク性能は、この値がfalseである場合に改善するかもしれません、その場合にはタスクは完了時にデータを配達するだけです。

This property defaults to true, except in the following cases which default to false: このプロパティは省略時にはtrueになります、以下の場合においてを除いて、それらは省略時にはfalseになります:

  • The task delivers results to a completion handler rather than to a delegate. タスクは、結果を完了ハンドラに配達します、委任先にではなく。

  • The task is a download task. タスクが、ダウンロードタスクである。