ExecutionFrame
ExecutionFrame provides the context for a single evaluation of an expression.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ExecutionFrame():
ExecutionFrame
Returns
Section titled “Returns”ExecutionFrame
Methods
Section titled “Methods”activation()
Section titled “activation()”activation():
Activation
activation returns the current activation stored by the frame.
Returns
Section titled “Returns”activeAsyncCalls()
Section titled “activeAsyncCalls()”activeAsyncCalls():
number
activeAsyncCalls returns the number of currently executing asynchronous bindings.
Returns
Section titled “Returns”number
asPartialActivation()
Section titled “asPartialActivation()”asPartialActivation():
PartialActivation|undefined
asPartialActivation returns the first partial activation visible from the current activation chain.
Returns
Section titled “Returns”PartialActivation | undefined
asyncCall()
Section titled “asyncCall()”asyncCall(
id):AsyncCall|undefined
asyncCall returns registered call metadata by id.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”AsyncCall | undefined
checkInterrupt()
Section titled “checkInterrupt()”checkInterrupt():
boolean
checkInterrupt returns whether the shared frame context has been interrupted.
Returns
Section titled “Returns”boolean
close()
Section titled “close()”close():
void
close releases any frame-local state and aborts the shared signal on the root frame.
Returns
Section titled “Returns”void
computeAsyncResult()
Section titled “computeAsyncResult()”computeAsyncResult(
options):Val
computeAsyncResult returns a cached result or registers an asynchronous invocation.
Parameters
Section titled “Parameters”options
Section titled “options”AsyncResultOptions
Returns
Section titled “Returns”Val
inheritParentFrame()
Section titled “inheritParentFrame()”inheritParentFrame(
options):void
inheritParentFrame links a promoted frame to an existing parent frame and shared context.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
isLocalVariable()
Section titled “isLocalVariable()”isLocalVariable(
name):boolean
isLocalVariable reports whether a name belongs to a local scope in the activation hierarchy.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
parent()
Section titled “parent()”parent():
Activation|undefined
parent proxies parent-activation lookup to the current activation.
Returns
Section titled “Returns”Activation | undefined
Implementation of
Section titled “Implementation of”parentFrame()
Section titled “parentFrame()”parentFrame():
ExecutionFrame|undefined
parentFrame returns the parent frame, if any.
Returns
Section titled “Returns”ExecutionFrame | undefined
pop():
ExecutionFrame
pop returns the parent frame, or the frame itself when it has no parent.
Returns
Section titled “Returns”ExecutionFrame
push()
Section titled “push()”push(
childActivation):ExecutionFrame
push creates a child frame whose activation resolves through the current frame first and the child second.
Parameters
Section titled “Parameters”childActivation
Section titled “childActivation”Returns
Section titled “Returns”ExecutionFrame
resolveName()
Section titled “resolveName()”resolveName(
name):unknown
resolveName proxies name resolution to the current activation.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”root()
Section titled “root()”root():
ExecutionFrame
root returns the root frame of this frame’s hierarchy.
Returns
Section titled “Returns”ExecutionFrame
setActivationHierarchy()
Section titled “setActivationHierarchy()”setActivationHierarchy(
options):void
setActivationHierarchy replaces the current activation with an explicit parent-child hierarchy.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
setAsync()
Section titled “setAsync()”setAsync(
options):void
setAsync configures asynchronous call tracking on a context-enabled root frame.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
setContext()
Section titled “setContext()”setContext(
options):void
setContext configures interrupt tracking on the root frame.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
signal()
Section titled “signal()”signal():
AbortSignal|undefined
signal returns the shared abort signal, if the frame has one.
Returns
Section titled “Returns”AbortSignal | undefined
unwrap()
Section titled “unwrap()”unwrap():
Activation
unwrap returns the current internal activation.
Returns
Section titled “Returns”waitForAsyncCompletion()
Section titled “waitForAsyncCompletion()”waitForAsyncCompletion(
ids):Promise<void>
waitForAsyncCompletion waits for one unresolved call represented by the supplied unknown ids.
Parameters
Section titled “Parameters”number[]
Returns
Section titled “Returns”Promise<void>
acquire()
Section titled “acquire()”
staticacquire(options):ExecutionFrame
acquire configures an inactive pooled frame for one root or child scope.
Parameters
Section titled “Parameters”options
Section titled “options”FrameReuseOptions
Returns
Section titled “Returns”ExecutionFrame