AsyncStatementUse Method (IAsyncStatement, ActionIStatement, CancellationToken, CancellationToken) |
Schedules the Actionf on the statement's operations queue.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty.Async (in SQLitePCL.pretty.Async.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static Task Use(
this IAsyncStatement This,
Action<IStatement, CancellationToken> f,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member Use :
This : IAsyncStatement *
f : Action<IStatement, CancellationToken> *
cancellationToken : CancellationToken -> Task
Parameters
- This
- Type: SQLitePCL.prettyIAsyncStatement
The async statement. - f
- Type: SystemActionIStatement, CancellationToken
The action. - cancellationToken
- Type: System.ThreadingCancellationToken
Cancellation token that can be used to cancel the task.
Return Value
Type:
TaskA task that completes when
f returns.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncStatement. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also