class

Medusa::Runtime

Inherits Reference < Object

Constructors

Instance methods

can_block=(val : Bool) : Nil
Source
drain_jobs

Drains all pending jobs. Returns the number of jobs executed.

Source
execute_pending_job

Executes one pending job. Returns {success, context} where success is true if a job was executed, false if none pending. Raises on JS exception during job execution (returns < 0).

Source
finalize
Source
freed?
Source
gc_threshold=(threshold : UInt64) : Nil
Source
info=(info : String) : Nil
Source
job_pending?
Source
live_object?(obj : QuickJS::JSValue) : Bool
Source
mark_freed!
Source
max_stack_size=(size : UInt64) : Nil
Source
memory_limit=(limit : UInt64) : Nil
Source
memory_usage
Source
opaque
Source
opaque=(ptr : Pointer(Void)) : Nil
Source
run_gc
Source
setup_module_loader

Enables file-based ES module loading. After calling this, all contexts on this runtime can use import / export with file paths. Relative paths are resolved from the importing module's directory. This runs entirely in C — no Crystal closures cross the FFI boundary.

Source
strip_info
Source
strip_info=(flags : QuickJS::StripFlag) : Nil
Source
to_unsafe
Source
update_stack_top
Source

Nested types