ScheduledTask Constructor
Namespace: Gemstone.ThreadingAssembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.147 -- Release Build+71918e29738e2d0700de8aec0ad72324b16f1428
public ScheduledTask(
ThreadingMode threadMode = ThreadingMode.ThreadPool,
ThreadPriority priority = ThreadPriority.Normal,
bool disposeOnShutdown = false
)
Public Sub New (
Optional threadMode As ThreadingMode = ThreadingMode.ThreadPool,
Optional priority As ThreadPriority = ThreadPriority.Normal,
Optional disposeOnShutdown As Boolean = false
)
public:
ScheduledTask(
ThreadingMode threadMode = ThreadingMode::ThreadPool,
ThreadPriority priority = ThreadPriority::Normal,
bool disposeOnShutdown = false
)
Gemstone.Threading.ScheduledTask = function(threadMode, priority, disposeOnShutdown);
Parameters
- threadMode ThreadingMode (Optional)
- The manner in which the scheduled task executes.
- priority ThreadPriority (Optional)
- The thread priority to assign if a dedicated thread is used. This is ignored if using the thread-pool.
- disposeOnShutdown Boolean (Optional)
- Adds a handler to ShutdownHandler that requires this class to be disposed
when the application is shutdown. Note: If this object has been garbage collected, this will have no effect.