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,可移植

请参见

参考

Control.MailboxProcessor<'Msg> 类 (F#)

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