timers

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimersModule

type TimersModule struct{}

TimersModule provides setTimeout, setInterval, clearTimeout, clearInterval

func NewTimersModule

func NewTimersModule() *TimersModule

NewTimersModule creates a new timers module

func (*TimersModule) Cleanup

func (t *TimersModule) Cleanup() error

Cleanup performs any necessary cleanup

func (*TimersModule) IsEnabled

func (t *TimersModule) IsEnabled(enabledModules map[string]bool) bool

IsEnabled checks if the module should be enabled based on configuration

func (*TimersModule) Name

func (t *TimersModule) Name() string

Name returns the module name

func (*TimersModule) Setup

func (t *TimersModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error

Setup initializes the timers module in the VM

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL