DeferredAsyncCursorTDocument Constructor |
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.1.0
Syntax public DeferredAsyncCursor(
Func<CancellationToken, Task<IAsyncCursor<TDocument>>> executeAsync
)
Public Sub New (
executeAsync As Func(Of CancellationToken, Task(Of IAsyncCursor(Of TDocument)))
)
new :
executeAsync : Func<CancellationToken, Task<IAsyncCursor<'TDocument>>> -> DeferredAsyncCursor
Parameters
- executeAsync
- Type: SystemFuncCancellationToken, TaskIAsyncCursorTDocument
The delegate to execute the first time MoveNextAsync is called.
See Also