DispatchQueue.DispatchAfter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
- when
- DispatchTime
- block
- DispatchBlock