iText 9.7.0 API
iText.Commons.Utils.TimerUtil Class Reference

Utility class for creating and managing timers. More...

Static Public Member Functions

static Timer  NewTimerWithRecurringTask (System.Action task, long delay, long period)
  Creates a new Timer instance. More...
 
static void  StopTimer (Timer timer)
  Stops the specified timer and releases its resources. More...
 

Detailed Description

Utility class for creating and managing timers.

Member Function Documentation

◆ NewTimerWithRecurringTask()

static Timer iText.Commons.Utils.TimerUtil.NewTimerWithRecurringTask ( System.Action  task,
long  delay,
long  period 
)
inlinestatic

Creates a new Timer instance.

Returns
a new Timer instance

◆ StopTimer()

static void iText.Commons.Utils.TimerUtil.StopTimer ( Timer  timer )
inlinestatic

Stops the specified timer and releases its resources.