PluginRegistory

Registry for managing Scheduler instances per Plugin.

This singleton ensures that each plugin has exactly one Scheduler instance and provides a centralized way to retrieve or remove them.

Functions

Link copied to clipboard
fun get(plugin: Plugin): Scheduler

Gets or creates a Scheduler for the specified plugin.

Link copied to clipboard
fun remove(plugin: Plugin): Unit?

Removes the Scheduler for the specified plugin and cancels all its tasks.