Click or drag to resize

DispatchQueueExtensionsDispatchAfter 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#
public static Task DispatchAfter(
	this IDispatchQueue queue,
	Action a,
	TimeSpan time
)

Parameters

queue
Type: Couchbase.LiteIDispatchQueue
The queue to operate on
a
Type: SystemAction
The Action to schedule
time
Type: SystemTimeSpan
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