共用方式為


MailboxProcessor.DefaultTimeout<'Msg> 屬性 (F#)

取得或設定目前的預設逾時。

**命名空間/模組路徑:**Microsoft.FSharp.Control

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signatures:
member this.DefaultTimeout :  int with get, set

// Usage:
mailboxProcessor.DefaultTimeout
mailboxProcessor.DefaultTimeout <- defaultTimeout

參數

  • value
    型別:int

    逾時 (以毫秒為單位)。

備註

如果未在此時間內收到訊息,MailboxProcessor 就會引發逾時例外狀況。 如果未設定此屬性,則不使用逾時。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

Control.MailboxProcessor<'Msg> 類別 (F#)

Microsoft.FSharp.Control 命名空間 (F#)