README

wcx789ll/moonsim/core/event does not have a README file

#
EventManager

pub(all) struct EventManager {
clock :
Clock

next_action_id : Int
next_proc_id : Int
// private fields
}

#
EventManager::get_process_status

fn EventManager::get_process_status(self : EventManager, proc_id : Int) -> ProcessStatus?

#
EventManager::register_process

fn EventManager::register_process(self : EventManager, name : String, steps : Array[(ProcessContext) -> Double?]) -> Int

#
EventManager::run

fn EventManager::run(self : EventManager) -> Unit

#
EventManager::run_until

fn EventManager::run_until(self : EventManager, target_seconds : Double) -> Unit

#
EventManager::schedule_action

fn EventManager::schedule_action(self : EventManager, delta_seconds : Double, priority : Int, action : () -> Unit) ->
EventId

#
EventManager::start_process

fn EventManager::start_process(self : EventManager, proc_id : Int, delay : Double, priority : Int) ->
EventId
?

#
EventManager::step

fn EventManager::step(self : EventManager) -> Bool

#
Process

pub(all) struct Process {
id : Int
name : String
step_idx : Int
steps : Array[(ProcessContext) -> Double?]
status : ProcessStatus
}

impl Show for Process

#
ProcessContext

pub(all) struct ProcessContext {
manager : EventManager
clock :
Clock

proc_id : Int
}

#
ProcessStatus

pub(all) enum ProcessStatus {
Ready
Running
Suspended
Terminated
} derive(Eq,
Debug
)

#
PRIORITY_BACKGROUND

let PRIORITY_BACKGROUND : Int

#
PRIORITY_CRITICAL

let PRIORITY_CRITICAL : Int

#
PRIORITY_HIGH

let PRIORITY_HIGH : Int

#
PRIORITY_LOW

let PRIORITY_LOW : Int

#
PRIORITY_NORMAL

let PRIORITY_NORMAL : Int

#
clamp_priority

fn clamp_priority(p : Int) -> Int

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io