AsyncBuilder.Combine<'T> 方法 (F#)
创建一个异步计算,该异步计算首先运行一个计算,再运行另一个计算,然后返回第二个计算的结果。
命名空间/模块路径: Microsoft.FSharp.Control
程序集:FSharp.Core(在 FSharp.Core.dll 中)
// Signature:
member this.Combine : Async<unit> * Async<'T> -> Async<'T>
// Usage:
asyncBuilder.Combine (computation1, computation2)
参数
返回值
按顺序运行这两个计算的异步计算。
备注
在执行计算时执行取消检查。 此方法的存在使得能够在 async { ... } 计算表达式语法中使用表达式排序。
平台
Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2
版本信息
F#核心库版本
支持:2.0,4.0,可移植