Поделиться через


Control.CommonExtensions Module (F#)

A module of extension members providing asynchronous operations for some basic CLI types related to concurrency and I/O.

Namespace/Module Path: Microsoft.FSharp.Control

Assembly: FSharp.Core (in FSharp.Core.dll)

[<AutoOpen>]
module CommonExtensions

Extension Members

Extension Member

Description

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

Permanently connects a listener function to the observable. The listener will be invoked for each observation.

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

Returns an asynchronous computation that will read from the stream into the given buffer.

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

Returns an asynchronous computation that will write the given bytes to the stream.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Microsoft.FSharp.Control Namespace (F#)