共用方式為


Control.CommonExtensions 模組 (F#)

擴充成員的模組,針對與並行和 I/O 相關的一些基本 CLI 型別,提供非同步作業。

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

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

[<AutoOpen>]
module CommonExtensions

擴充成員

擴充成員

說明

Add : ('T -> unit) -> unit

將接聽程式函式一律連接至可預見值。 每次觀測時都會叫用此接聽程式。

AsyncRead : byte [] * ?int * ?int -> Async<int>

傳回會將資料流讀入指定之緩衝區的非同步計算。

AsyncWrite : byte[] * ?int * ?int -> Async<unit>

傳回會將指定之位元組寫入至資料流的非同步計算。

平台

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

請參閱

參考

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