Skip to content
1 min read · 153 words

Interface: GuestGlobal

Defined in: src/batteries/sandbox/js/ses_contracts.ts:4

A declared capability kept in the host runner.

Properties

PropertyModifierTypeDescriptionDefined in
cancellationreadonly"killable" | "cooperative" | "atomic"Completion policy for an in-flight capability call. Remarks This is required with no default. killable kills its child, cooperative is best-effort, and atomic must finish before recycling; guessing cooperative for a capability that spawns a child is unsafe.src/batteries/sandbox/js/ses_contracts.ts:22
fnreadonly(args: unknown[], signal: AbortSignal) => unknownHost implementation invoked by the guest-facing capability stub. Remarks The signal is lifecycle-scoped, not per call: expiry of hostcallTimeoutMs does not fire it. Arguments and results must be structured-clone/codec serialisable, and every guest call is asynchronous even when this host function is synchronous.src/batteries/sandbox/js/ses_contracts.ts:13