Open Asterune
ExecutionGroup

ExecutionGroup

Groups scripts into an execution context with serial or parallel scheduling.

Creatable
Instance.new("ExecutionGroup")
Inherits
Instance
Replication
Standard

Behavior

ExecutionGroup groups scripts into an execution context with serial or parallel scheduling.

Summary

Members6
Properties1
Methods5

Properties

ExecutionMode

ExecutionGroup.ExecutionMode: Enum.ExecutionMode = Enum.ExecutionMode.Serial

Whether scripts in this group use serial or parallel scheduling. Parallel entry points require Enum.ExecutionMode.Parallel.

Methods

GetExecutionGroup

ExecutionGroup:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetScripts

ExecutionGroup:GetScripts(): table

Returns the script instances available through this script binding.

Message

ExecutionGroup:Message(topic: string, args: ...any): ()

Posts arguments to a named topic in this group. Arguments must be supported shared values. Delivery is queued.

OnMessage

ExecutionGroup:OnMessage(string, function): AstScriptConnection

Registers a serial handler for the topic and returns an AstScriptConnection. The topic must be a nonempty string.

OnMessageParallel

ExecutionGroup:OnMessageParallel(string, function): AstScriptConnection

Registers a parallel handler for the topic and returns an AstScriptConnection. Requires a parallel ExecutionGroup.

Inherited members

Inherited47

Instance