Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions loader/include/Geode/utils/Task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,9 +898,9 @@ namespace geode {
);
}
else if (auto p = event->getProgress()) {
// no guarantee P and NewProgress are compatible
// nor does it seem like the intended behavior?
// TODO: maybe add a mapper for progress?
if constexpr (std::is_same_v<P, NewProgress>) {
NewTask::progress(handle.lock(), std::move(*p));
}
}
else if (event->isCancelled()) {
NewTask::cancel(handle.lock());
Expand Down Expand Up @@ -1110,3 +1110,4 @@ template <class T, class P, class... Args>
struct std::coroutine_traits<geode::Task<T, P>, Args...> {
using promise_type = geode::geode_internal::TaskPromise<T, P>;
};

Loading