/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h
Return the number of foreground worker threads. If the old backend is used, return the number of high-pri workers (0 if high-pri workers are disabled).
int32 GetNumForegroundThreads()