Async.SwitchToThreadPool 方法 (F#)
创建一个异步计算,该异步计算会对运行其延续的工作项进行排队。
命名空间/模块路径: Microsoft.FSharp.Control
程序集:FSharp.Core(在 FSharp.Core.dll 中)
// Signature:
static member SwitchToThreadPool : unit -> Async<unit>
// Usage:
Async.SwitchToThreadPool ()
返回值
在线程池中生成新工作项的计算。
备注
关于执行此操作的示例,请参见 Async.SwitchToContext 方法 (F#) 和 Async.SwitchToNewThread 方法 (F#)。
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本信息
F# 运行时
受以下版本支持:2.0、4.0
Silverlight
受以下版本支持:3