共用方式為


DispatchGroup.Notify 方法

定義

多載

Notify(DispatchQueue, DispatchBlock)
Notify(DispatchQueue, Action)

當與群組相關聯的所有區塊都完成時,排程要提交至佇列的區塊。

Notify(DispatchQueue, DispatchBlock)

public void Notify (CoreFoundation.DispatchQueue queue, CoreFoundation.DispatchBlock block);
member this.Notify : CoreFoundation.DispatchQueue * CoreFoundation.DispatchBlock -> unit

參數

適用於

Notify(DispatchQueue, Action)

當與群組相關聯的所有區塊都完成時,排程要提交至佇列的區塊。

public void Notify (CoreFoundation.DispatchQueue queue, Action action);
member this.Notify : CoreFoundation.DispatchQueue * Action -> unit

參數

queue
DispatchQueue

將提交區塊以進行非同步調用的分派佇列。

action
Action

群組完成時要叫用的動作。

備註

此函式會在與分派群組相關聯的所有區塊完成之後,排程要提交至指定佇列的通知區塊。

如果沒有區塊與分派群組相關聯 (亦即群組是空的) ,則會立即提交通知區塊。

當通知區塊提交至目標佇列時,群組將會是空的。

適用於