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

suspended

A Boolean value indicating whether the queue is actively scheduling operations for execution. そのキューが遂行のためにオペレーションを積極的に予定に入れるかどうかを指し示しているブール値。

Declaration 宣言

@property(getter=isSuspended) BOOL suspended;

Discussion 議論

When the value of this property is NO, the queue actively starts operations that are in the queue and ready to execute. Setting this property to YES prevents the queue from starting any queued operations, but already executing operations continue to execute. You may continue to add operations to a queue that is suspended but those operations are not scheduled for execution until you change this property to NO. このプロパティの値がNOである場合、キューは、キューの中にあるそして遂行準備ができたオペレーションを積極的に開始します。このプロパティをYESに設定することは、キューがキューに入れられた何らかのオペレーションを開始することを妨げます、しかし既に遂行中のオペレーションは遂行を継続します。あなたは、一時停止されるキューにオペレーションの追加を続けるかもしません、しかしそれらオペレーションは遂行の予定に入れられません、あなたがこのプロパティをNOに変更するまでは。

Operations are removed from the queue only when they finish executing. However, in order to finish executing, an operation must first be started. Because a suspended queue does not start any new operations, it does not remove any operations (including cancelled operations) that are currently queued and not executing. オペレーションは、それらが遂行を終了する場合にのみキューから取り除かれます。しかしながら、遂行を終了するためには、オペレーションはまず開始されなければなりません。一時停止されたキューはなんら新しいオペレーションを開始しないことから、それは現在キューに入れられるそして遂行中でないどんなオペレーションも(取り消されたオペレーションを含めて)取り除きません。

You may monitor changes to the value of this property using Key-value observing. Configure an observer to monitor the suspended key path of the operation queue. あなたは、このプロパティへの変更をキー値監視を使って監視するかもしれません。ひとつのオブザーバを構成設定して、オペレーションキューのsuspendedキーパスを監視してください。

The default value of this property is NO. このプロパティの省略時の値はNOです。