Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.Util.Threading.PeriodicMultiple

Summary

Encapsulates a class performing multiple related yet independent tasks on the same thread at a certain minimum interval each. Schedules the activity that is the most late at every opportunity, but will never execute more than one activity at a time (as they all share the same thread).

Threading: unsafe (call public methods on the creating thread only)

Instance methods

bool
Shutdown(bool waitForExit)
Causes the periodic activity to stop occurring. If called while the activity is being performed, will wait until the activity has completed before returning. Ensures that Periodic.IsRunning is false once this method returns.
void
Start(bool backgroundThread = false)
Schedules the periodic activity to start occurring. This method may only be called once.

Instance properties

bool Returns false before the first call to Periodic.Start(bool) and after the first call to Periodic.Shutdown(bool); true between them.