DeferredAsyncCursorTDocument Constructor |
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
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