Asynchronously executes data reader and returns custom handler result.
Namespace: NReco.DataAssembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
public Task<T> ExecuteReaderAsync<T>(
Func<IDataReader, CancellationToken, Task<T>> readHandlerAsync,
CancellationToken cancel
)
public Task<T> ExecuteReaderAsync<T>(
Func<IDataReader, CancellationToken, Task<T>> readHandlerAsync,
CancellationToken cancel
)
Public Function ExecuteReaderAsync(Of T) (
readHandlerAsync As Func(Of IDataReader, CancellationToken, Task(Of T)),
cancel As CancellationToken
) As Task(Of T)
Public Function ExecuteReaderAsync(Of T) (
readHandlerAsync As Func(Of IDataReader, CancellationToken, Task(Of T)),
cancel As CancellationToken
) As Task(Of T)
public:
generic<typename T>
Task<T>^ ExecuteReaderAsync(
Func<IDataReader^, CancellationToken, Task<T>^>^ readHandlerAsync,
CancellationToken cancel
)
public:
generic<typename T>
Task<T>^ ExecuteReaderAsync(
Func<IDataReader^, CancellationToken, Task<T>^>^ readHandlerAsync,
CancellationToken cancel
)
member ExecuteReaderAsync :
readHandlerAsync : Func<IDataReader, CancellationToken, Task<'T>> *
cancel : CancellationToken -> Task<'T>
member ExecuteReaderAsync :
readHandlerAsync : Func<IDataReader, CancellationToken, Task<'T>> *
cancel : CancellationToken -> Task<'T>
- T
Return Value
Type:
Task T