fix: try to fix #6006

This commit is contained in:
MistEO
2023-08-28 20:05:44 +08:00
parent 1939319312
commit de01df6af6

View File

@@ -134,7 +134,7 @@ bool asst::ResourceLoader::load(const std::filesystem::path& path)
#define FutureAppendEnds
#else
std::vector<std::future<bool>> futures;
#define FutureAppendBegins futures.emplace_back(std::async(std::launch::async, [&]() -> bool {
#define FutureAppendBegins futures.emplace_back(std::async(std::launch::async | std::launch::deferred, [&]() -> bool {
#define FutureAppendEnds \
return true; \
}))