Proton DotNet
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Client.Concurrent.IScheduledTask Interface Reference

Represents a scheduled item of work that will be run on the event loop either once or on a repeating basis. The task allows for easy cancelation and for asynchronous awaits via the return completion Task. More...

Public Member Functions

bool Cancel ()
 Request to cancel the scheduled task if possible, returns true if the task was canceled before it ran, false otherwise. If the Task is a periodic variant then all future executions are cancelled as well.
 

Properties

long Delay [get]
 Returns the delay time in as high of precision as possible for the time the task executes and the next iteration if this task is periodic.
 
long Deadline [get]
 Returns the next time to run in as high of precision value as possible in the current environment.
 
Task CompletionTask [get]
 A Task that can be awaited for scheduled work that is not periodic in nature.
 

Detailed Description

Represents a scheduled item of work that will be run on the event loop either once or on a repeating basis. The task allows for easy cancelation and for asynchronous awaits via the return completion Task.

Member Function Documentation

◆ Cancel()

bool Apache.Qpid.Proton.Client.Concurrent.IScheduledTask.Cancel ( )

Request to cancel the scheduled task if possible, returns true if the task was canceled before it ran, false otherwise. If the Task is a periodic variant then all future executions are cancelled as well.

Returns
true if cancelled, false otherwise

The documentation for this interface was generated from the following file: