ICallerContextServiceQueueBackgroundTaskT(FuncT, TimeSpan, CancellationToken) Method |
Runs an action after a specified delay.
Namespace: Dundas.BIAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
SyntaxTask<T> QueueBackgroundTask<T>(
Func<T> func,
TimeSpan delay,
CancellationToken cancellationToken
)
Function QueueBackgroundTask(Of T) (
func As Func(Of T),
delay As TimeSpan,
cancellationToken As CancellationToken
) As Task(Of T)
generic<typename T>
Task<T>^ QueueBackgroundTask(
Func<T>^ func,
TimeSpan delay,
CancellationToken cancellationToken
)
abstract QueueBackgroundTask :
func : Func<'T> *
delay : TimeSpan *
cancellationToken : CancellationToken -> Task<'T> Parameters
- func FuncT
- The delegate to run.
- delay TimeSpan
- The delay.
- cancellationToken CancellationToken
- The cancellation token.
Type Parameters
- T
- The type of object returned by the task.
Return Value
TaskTA task object representing the asynchronous operation.
Exceptions
See Also