Sign in

    Milky2018/wasmoon_runtime/control does not have a README file

    InvocationControl

    pub struct InvocationControl {
    deadline : (
    Instant
    , Double)?
    cancel : () -> Bool?
    cancelled : Bool
    timed_out : Bool
    exhausted :
    Ref
    [Bool]
    // private fields
    }

    Invocation-local cooperative cancellation and elapsed-time deadline. Uses a monotonic clock; time spent suspended or in host code counts.

    InvocationControl::expired

    fn InvocationControl::expired(self : InvocationControl) -> Bool

    Check the deadline without invoking the user's cancellation callback.

    InvocationControl::new

    fn InvocationControl::new(timeout_ms : Int?, cancel : () -> Bool?, safepoints? : Int64?) -> InvocationControl?

    A negative timeout is invalid; zero expires before guest execution.

    InvocationControl::poll

    fn InvocationControl::poll(self : InvocationControl) -> Bool

    InvocationControl::preflight

    fn InvocationControl::preflight(self : InvocationControl) -> Bool

    Latch the first observed stop reason for stable result classification.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io