Type Property 型プロパティ

main

Returns the operation queue associated with the main thread. メインスレッドと結びつけられたオペレーションキューを返します。

Declaration 宣言

class var main: OperationQueue { get }

Return Value 戻り値

The default operation queue bound to the main thread. メインスレッドにバインドされる省略時のオペレーションキュー。

Discussion 議論

The returned queue executes one operation at a time on the app’s main thread. The execution of operations on the main thread is interleaved with the other tasks that must execute on the main thread, such as the servicing of events and the updating of an app’s user interface. The queue executes those operations in the run loop common modes, as represented by the common constant. The value of the underlyingQueue property for the queue is the dispatch queue for the main thread; this property cannot be set to another value. 返されるキューは、一度に1つのオペレーションをアプリのもつメインスレッド上で遂行します。メインスレッド上でのオペレーションの遂行は、メインスレッド上で遂行しなければならない他のタスク、例えばイベントの提供そしてアプリのもつユーザインターフェイスの更新などと交互になされます。キューはそれらオペレーションを、common定数によって表される、実行ループ通常モードで遂行します。キューに対するunderlyingQueueプロパティの値は、メインスレッドに対するディスパッチキューです;このプロパティは別の値に設定されることは出来ません。

See Also 参照

Accessing Specific Operation Queues 特定のオペレーションキューにアクセスする