Skip to main content

Crate mhome_script_runtime

Crate mhome_script_runtime 

Source
Expand description

Native QuickJS execution, independent of Core/cloud storage and host services. Each call owns its runtime. The local future must run on a dedicated JS worker, not a request executor thread: JavaScript runs synchronously between awaits.

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.
InvocationControl
NoHost
ScriptLimits
ScriptWorkers
A small dedicated CPU pool. Waiting host calls yield within a LocalSet; request saturation cannot consume the separate hook admission capacity. Admission is fail-fast, including hooks, so recursive hooks never wait forever for a slot held by their caller. Capacity is released after actual worker cleanup.
WorkerConfig

Enums§

Admission
A trusted host scheduling classification, never selected by script arguments.

Traits§

ScriptHost
Host implementations own trusted tenant/Space/connection context. They must allowlist operations, authorize each call, and bound IO before allocating it. Dropping these futures releases temporary resources; it is not compensation.

Functions§

invoke
Source must already be resolved against trusted ownership, manifest and hash. This leaf executor does not grant resource access or fetch artifacts.

Type Aliases§

HostFuture