Feature/optimize task imports (#257)

* Prune empty code files

* delete file

* Restore

* refactor

* fix warnings

* Fix tasks

* Add diag

* tweak

* Log load times

* changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-01-08 19:38:39 -05:00
1 parent 641c9ef5bf
commit 5335a0273b
26 files changed
+221 -256

No files matched your search

@@ -2,10 +2,11 @@ import "pkg:/components/ChannelView/ChannelUtils.bs"
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
import "pkg:/components/Navigation/LongPress.bs"
import "pkg:/components/PlaylistView/PlaylistUtils.bs"
import "pkg:/components/VideoFeed/VideoRowListContentTask.bs"
import "pkg:/components/VideoFeed/VideoRowListRowContentTask.bs"
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
import "pkg:/components/VideoFeed/FeedLoadState.bs"
import "pkg:/components/VideoPlayer/VideoUtils.bs"
import "pkg:/source/asyncTask/asyncTask.bs"
import "pkg:/source/AsyncTask/AsyncTask.bs"
import "pkg:/source/AsyncTask/Tasks.bs"
import "pkg:/source/utils/DisposableObserve.bs"
import "pkg:/source/utils/ErrorUtils.bs"
import "pkg:/source/utils/Logging.bs"
@@ -213,7 +214,7 @@ function InitContent() as void
return
end if
task = StartAsyncTask(VideoRowListContentTask, {
task = AsyncTask.Start(Tasks.VideoRowListContentTask, {
node: m.top
feeds: m.top.feeds
}, OnVideoRowListContentTaskResult)
@@ -286,7 +287,7 @@ function LoadRowContent(contentNode as object)
LogInfo("Loading row content:", contentNode.title)
contentNode.loadState = FeedLoadState.Loading
task = StartAsyncTask(VideoRowListRowContentTask, {
task = AsyncTask.Start(Tasks.VideoRowListRowContentTask, {
rowList: m.top
feedContentNode: contentNode
invidious: m.invidious
@@ -1,4 +1,4 @@
import "FeedLoadState.bs"
import "pkg:/components/VideoFeed/FeedLoadState.bs"
import "pkg:/source/utils/StringUtils.bs"
@asynctask