Syntax
isparallel(): booleanAliases
checkparallelReturns
| Name | Type | Description |
|---|---|---|
parallel | boolean | True when the current context is parallel. |
Description
Returns whether the current context is running in a parallel Actor state.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns parallel (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = isparallel()
print(result)