CommonExtensions Module
A module of extension members providing asynchronous operations for some basic CLI types related to concurrency and I/O.
Type extensions
Type extension |
Description
|
||||
Permanently connects a listener function to the observable. The listener will be invoked for each observation.
Extended Type:
|
|||||
Full Usage:
this.AsyncRead
Parameters:
byte array
-
The buffer to read into.
?offset : int
-
An optional offset as a number of bytes in the stream.
?count : int
-
An optional number of bytes to read from the stream.
Returns: Async<int>
An asynchronous computation that will read from the stream into the given buffer.
|
Returns an asynchronous computation that will read from the stream into the given buffer.
Extended Type:
|
||||
|
|||||
Full Usage:
this.AsyncWrite
Parameters:
byte array
-
The buffer to write from.
?offset : int
-
An optional offset as a number of bytes in the stream.
?count : int
-
An optional number of bytes to write to the stream.
Returns: Async<unit>
An asynchronous computation that will write the given bytes to the stream.
|
Returns an asynchronous computation that will write the given bytes to the stream.
Extended Type:
|
||||
Full Usage:
this.Subscribe
Parameters:
'T -> unit
-
The function to be called for each observation.
Returns: IDisposable
An object that will remove the listener if disposed.
|
Connects a listener function to the observable. The listener will be invoked for each observation. The listener can be removed by calling Dispose on the returned IDisposable object.
Extended Type:
|