how to check compiling shaders finished by blueprint or c++

Maybe try instead:

FAssetCompilingManager::Get().FinishAllCompilation();