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

operations

The operations currently in the queue. 現在キューの中にあるオペレーションそれら。

Declaration 宣言

var operations: [Operation] { get }

Discussion 議論

The array in this property contains zero or more Operation objects in the order you added them to the queue. This order doesn’t necessarily reflect the order in which the queue invokes those operations.

You can use this property to access the operations queued at any given moment. Operations remain queued until they finish their task. あなたは、このプロパティを使うことでキューに入れられたオペレーションにどんなときでもアクセスできます。オペレーションは、それらがそれらのタスクを終了するまではキューに入れられたままです。 Therefore, the array may contain operations that are currently running or waiting to run. The list may also contain operations that were running when you retrieved the array but have subsequently finished.

You can monitor changes to the value of this property using Key-value observing (KVO). Configure an observer to monitor the operations key path of the operation queue. ひとつのオブザーバを構成設定して、オペレーションキューのoperationsキーパスを監視してください。

See Also 参照

Managing Operations in the Queue キューの中のオペレーションそれらを管理する