共用方式為


DispatchQueue.DispatchAfter 方法

定義

多載

DispatchAfter(DispatchTime, Action)

在指定的時間或之後執行這個時間。

DispatchAfter(DispatchTime, DispatchBlock)

DispatchAfter(DispatchTime, Action)

在指定的時間或之後執行這個時間。

public void DispatchAfter (CoreFoundation.DispatchTime when, Action action);
member this.DispatchAfter : CoreFoundation.DispatchTime * Action -> unit

參數

when
DispatchTime

執行程式碼區塊的時間。

action
Action

未來一段時間要執行的程式碼區塊。

適用於

DispatchAfter(DispatchTime, DispatchBlock)

public void DispatchAfter (CoreFoundation.DispatchTime when, CoreFoundation.DispatchBlock block);
member this.DispatchAfter : CoreFoundation.DispatchTime * CoreFoundation.DispatchBlock -> unit

參數

適用於