AbstractExecutorService.AwaitTerminationAsync(Int64, TimeUnit) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public System.Threading.Tasks.Task<bool> AwaitTerminationAsync(long timeout, Java.Util.Concurrent.TimeUnit? unit);
member this.AwaitTerminationAsync : int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<bool>
參數
- timeout
- Int64
最大等待時間轉移到 AwaitTermination(Int64, TimeUnit)。
- unit
- TimeUnit
所用單位 來測量 timeout。
傳回
一個任務,其結果為由 返回 AwaitTermination(Int64, TimeUnit)的布林值。
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。