Revert "[skip ci][perf] do not listen on tasks that have no callbacks" (#647)
* Revert "[skip ci][perf] do not listen on tasks that have no callbacks"
This reverts commit 0bc5ab6117.
* changelog
This commit is contained in:
1 parent
4906b69f4a
commit
fc2ffd8c23
2 files changed
+9
-5
No files matched your search
+3
-1
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- Nothing worth mentioning yet.
|
### Fixed
|
||||||
|
|
||||||
|
- [Perf] reverted a perf fix that wasn't helping
|
||||||
|
|
||||||
## [0.40.1] - 2025-06-07
|
## [0.40.1] - 2025-06-07
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,9 @@ namespace AsyncTask
|
|||||||
task.id = id
|
task.id = id
|
||||||
task.input = input
|
task.input = input
|
||||||
|
|
||||||
if callback <> invalid
|
m[`asynctask_${id}`] = task
|
||||||
m[`asynctask_${id}_callback`] = callback
|
m[`asynctask_${id}_callback`] = callback
|
||||||
task.ObserveFieldScoped("state", FuncName(internal_OnTaskState))
|
task.ObserveFieldScoped("state", FuncName(internal_OnTaskState))
|
||||||
end if
|
|
||||||
|
|
||||||
return task
|
return task
|
||||||
end function
|
end function
|
||||||
@@ -40,6 +39,9 @@ namespace AsyncTask
|
|||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
task.input = invalid
|
||||||
|
task.output = invalid
|
||||||
|
m.delete(`asynctask_${id}`)
|
||||||
m.delete(`asynctask_${id}_callback`)
|
m.delete(`asynctask_${id}_callback`)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user