Navigation
API > API/Runtime > API/Runtime/VerseCompiler
Spawn concurrency primitive - spawn {Coro()} [future: spawn {Expr1; Expr2}] Async expression treated as a closure/lambda with next expression executed immediately while the started async expression continues independently. Has no result. spawn essentially makes any async expression an immediate expression. This also means that it can allow async expressions / coroutines to be called within immediate functions.
| Name | CExprSpawn |
| Type | class |
| Header File | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/Expression.h |
| Include Path | #include "uLang/Semantics/Expression.h" |
Syntax
class CExprSpawn : public uLang::CExprSubBlockBase
Inheritance Hierarchy
- CSharedMix → CAstNode → CExpressionBase → CExprSubBlockBase → CExprSpawn
- CAttributable → CExpressionBase → CExprSubBlockBase → CExprSpawn
Functions
Public
Overridden from CAstNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual CUTF8String GetErrorDesc() |
Text methods. | uLang/Semantics/Expression.h | |
virtual EAstNodeType GetNodeType() |
uLang/Semantics/Expression.h |