Raxol.Core.Runtime.Plugins.TimerManager (Raxol Core v2.4.0)

Copy Markdown View Source

Handles timer management for plugin operations including periodic ticks and file event timers.

This module has been enhanced to use the centralized TimerManager for consistent timer handling across the plugin system.

Summary

Functions

Cancels an existing timer using the centralized TimerManager.

Cancels a periodic tick timer using the centralized TimerManager.

Schedules a file event timer using the centralized TimerManager.

Starts a periodic tick timer using the centralized TimerManager.

Functions

cancel_existing_timer(state)

@spec cancel_existing_timer(map()) :: map()

Cancels an existing timer using the centralized TimerManager.

cancel_periodic_tick(state)

@spec cancel_periodic_tick(map()) :: {:ok, map()}

Cancels a periodic tick timer using the centralized TimerManager.

schedule_file_event_timer(state, plugin_id, path, interval \\ 1000)

@spec schedule_file_event_timer(map(), atom(), String.t(), pos_integer()) :: map()

Schedules a file event timer using the centralized TimerManager.

start_periodic_tick(state, interval \\ 5000)

@spec start_periodic_tick(map(), pos_integer()) :: map()

Starts a periodic tick timer using the centralized TimerManager.