CallerContextServiceQueueBackgroundTaskT Method (FuncT, TimeSpan, CancellationToken) |
Runs an action after a specified delay.
Namespace:
Dundas.BI.Services
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax public Task<T> QueueBackgroundTask<T>(
Func<T> func,
TimeSpan delay,
CancellationToken cancellationToken
)
Public Function QueueBackgroundTask(Of T) (
func As Func(Of T),
delay As TimeSpan,
cancellationToken As CancellationToken
) As Task(Of T)
public:
generic<typename T>
virtual Task<T>^ QueueBackgroundTask(
Func<T>^ func,
TimeSpan delay,
CancellationToken cancellationToken
) sealed
abstract QueueBackgroundTask :
func : Func<'T> *
delay : TimeSpan *
cancellationToken : CancellationToken -> Task<'T>
override QueueBackgroundTask :
func : Func<'T> *
delay : TimeSpan *
cancellationToken : CancellationToken -> Task<'T>
Parameters
- func
- Type: SystemFuncT
The delegate to run. - delay
- Type: SystemTimeSpan
The delay. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Type Parameters
- T
- The type of object returned by the task.
Return Value
Type:
TaskTA task object representing the asynchronous operation.
Implements
ICallerContextServiceQueueBackgroundTaskT(FuncT, TimeSpan, CancellationToken)Exceptions See Also