| ThrottlerQueueWorkAsync Method |
This is preliminary documentation and is subject to change.
Asynchronously enqueues a work item.
Namespace: WikiClientLibrary.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<IDisposable> QueueWorkAsync(
string name,
CancellationToken cancellationToken
)
Public Function QueueWorkAsync (
name As String,
cancellationToken As CancellationToken
) As Task(Of IDisposable)
Dim instance As Throttler
Dim name As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of IDisposable)
returnValue = instance.QueueWorkAsync(name,
cancellationToken)
public:
Task<IDisposable^>^ QueueWorkAsync(
String^ name,
CancellationToken cancellationToken
)
member QueueWorkAsync :
name : string *
cancellationToken : CancellationToken -> Task<IDisposable>
Parameters
- name String
- The name of the work, for debugging purpose.
- cancellationToken CancellationToken
- The token used to cancel the work before its action.
Return Value
TaskIDisposable
A task that completes after an appropriate throttling delay
and that returns an
IDisposable used to signal the completion of the work.
See Also