[Home] Module Microsoft.FSharp.Control.CommonExtensions


A module of extension members that provide asynchronous operations for some basic .NET types related to concurrency and I/O.

Extension Members

Extension MemberDescription
member AsyncRead : buffer:byte [] * ?offset:int * ?count:int -> Async<int>
Return an asynchronous computation that will read from the stream into the given buffer.
member AsyncRead : count:int -> Async<byte []>
Return an asynchronous computation that will read the given number of bytes from the stream
member AsyncSleep : millisecondsDueTime:int -> Async<unit>
Return an asynchronous computation that will sleep for the given time. This is scheduled using a System.Threading.Timer object, meaning that the operation will not block any threads for the duration of the wait.
member AsyncWaitOne : ?millisecondsTimeout:int -> Async<bool>
Return an asynchronous computation that will wait on the given WaitHandle. This is scheduled as a wait-item in the .NET thread pool using RegisterWaitForSingleObject, meaning that the operation will not block any .NET threads for the duration of the wait.
member
  AsyncWrite : buffer:byte [] * ?offset:int * ?count:int -> Async<unit>
Return an asynchronous computation that will write the given bytes to the stream

See Also

Microsoft.FSharp.Control


Documentation for assembly FSharp.Core, version 1.9.6.16, generated using F# Programming Language version 1.9.6.16