- addOperation:
- addOperations:waitUntilFinished:
- addOperationWithBlock:
- addBarrierBlock:
- cancelAllOperations
- waitUntilAllOperationsAreFinished
Deprecated 非推奨
To avoid race conditions while accessing operations, use add
instead.
Availability 有効性
Technology
@property(readonly, copy) NSArray
<__kindof NSOperation
*> *operations;
The array in this property contains zero or more NSOperation
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
キーパスを監視してください。
- addOperation:
- addOperations:waitUntilFinished:
- addOperationWithBlock:
- addBarrierBlock:
- cancelAllOperations
- waitUntilAllOperationsAreFinished