how did fod compile this

This commit is contained in:
matcool 2024-02-24 14:25:14 -03:00
parent 2db556dc20
commit ee274195fe

View file

@ -172,7 +172,7 @@ namespace geode {
if (m_data->cancelled) return *this;
std::unique_lock<std::mutex> _(m_data->mutex);
if (m_data->result.has_value()) {
Loader::get()->queueInMainThread([] {
Loader::get()->queueInMainThread([handler = std::move(handler)] {
handler();
});
}