'Declaration
Public Function New( _ ByVal callback As AsyncCallback, _ ByVal callbackData As Object, _ ByVal timeout As Integer, _ ByVal cts As CancellationTokenSource _ )
'Usage
Dim callback As AsyncCallback Dim callbackData As Object Dim timeout As Integer Dim cts As CancellationTokenSource Dim instance As New AsyncResultBase(callback, callbackData, timeout, cts)
public AsyncResultBase( AsyncCallback callback, object callbackData, int timeout, CancellationTokenSource cts )
public: AsyncResultBase( AsyncCallback^ callback, Object^ callbackData, int timeout, CancellationTokenSource^ cts )
Parameters
- callback
- The callback to use when the operation completes.
- callbackData
- The callback data.
- timeout
- The timeout for the operation.
- cts
- Cancellation token for async operation.