Skip to content

YaksokSession

Defined in: core/session/session.ts:33

new YaksokSession(__namedParameters?): YaksokSession

Defined in: core/session/session.ts:58

Partial<{ stderr: YaksokSession["stderr"]; stdout: YaksokSession["stdout"]; }> = {}

YaksokSession

aliveListeners: Promise<void>[] = []

Defined in: core/session/session.ts:56


baseFrame: RunFrame | null = null

Defined in: core/session/session.ts:40


eventCreation: PubSub<{[key: string]: (args, callback, terminate, frame) => void; }>

Defined in: core/session/session.ts:47


extensions: Extension[]

Defined in: core/session/session.ts:39


files: Record<string, CodeFile> = {}

Defined in: core/session/session.ts:42


id: string

Defined in: core/session/session.ts:34


runtimeContext: RuntimeContext | null = null

Defined in: core/session/session.ts:43


stderr: (message, error) => void

Defined in: core/session/session.ts:37

string

YaksokError

void


stdout: (message) => void

Defined in: core/session/session.ts:36

string

void

addModule(moduleName, code): CodeFile

Defined in: core/session/session.ts:71

string

string

CodeFile


extend(extension): Promise<void>

Defined in: core/session/session.ts:84

Extension

Promise<void>


runFFI(runtime, code, args, callerFrame): Promise<ValueType>

Defined in: core/session/session.ts:144

string

string

Map<SlotKey, ValueType>

RunFrame

Promise<ValueType>


runModules<T>(fileNames): Promise<Record<T[number], PromiseSettledResult<Scope>>>

Defined in: core/session/session.ts:101

T extends string[]

T

Promise<Record<T[number], PromiseSettledResult<Scope>>>


tick(): Promise<void>

Defined in: core/session/session.ts:197

Promise<void>


useBaseFrame(frame): void

Defined in: core/session/session.ts:97

RunFrame

void


withRuntimeContext<T>(func, providedContext): Promise<T>

Defined in: core/session/session.ts:122

T

(content) => Promise<T>

Partial<RuntimeContext> & Pick<RuntimeContext, "entry">

Promise<T>