Couchbase Lite .NET Documentation
Couchbase Lite .NET Documentation
Couchbase.Lite
DispatchQueueExtensions Class
DispatchQueueExtensions Methods
DispatchAfter Method
DispatchAfter Method (IDispatchQueue, Action, TimeSpan)
DispatchAfter(TResult) Method (IDispatchQueue, Func(TResult), TimeSpan)
DispatchQueueExtensions
DispatchAfter Method (IDispatchQueue, Action, TimeSpan)
Schedules the given
Action
after waiting the given amount of time
Namespace:
Couchbase.Lite
Assembly:
Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
Copy
public
static
Task
DispatchAfter
(
this
IDispatchQueue
queue
,
Action
a
,
TimeSpan
time
)
Parameters
queue
Type:
Couchbase.Lite
IDispatchQueue
The queue to operate on
a
Type:
System
Action
The
Action
to schedule
time
Type:
System
TimeSpan
The delay to use before scheduling
Return Value
Type:
Task
A
Task
object representing the scheduled
Action
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDispatchQueue
. 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
Reference
DispatchQueueExtensions Class
DispatchAfter Overload
Couchbase.Lite Namespace