Click or drag to resize

DispatchQueueExtensionsDispatchAfterTResult Method (IDispatchQueue, FuncTResult, TimeSpan)

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
public static Task<TResult> DispatchAfter<TResult>(
	this IDispatchQueue queue,
	Func<TResult> f,
	TimeSpan time
)

Parameters

queue
Type: Couchbase.LiteIDispatchQueue
The queue to oeprate on
f
Type: SystemFuncTResult
The FuncTResult to schedule
time
Type: SystemTimeSpan
The delay to use before scheduling

Type Parameters

TResult
The return type of the operation

Return Value

Type: TaskTResult
A TaskTResult object representing the scheduled FuncTResult

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