mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: try to fix #6006
This commit is contained in:
@@ -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; \
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user