Skip to content

Commit

Permalink
[REFACTOR] Add missing annotation.
Browse files Browse the repository at this point in the history
  - Explicitly annotate function getTopThreeNotice using @workerthread for performance & sustainability.
  • Loading branch information
doyoonkim3312 committed Nov 10, 2024
1 parent b4f97d8 commit 21c2941
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.doyoonkim.knutice.data

import androidx.annotation.WorkerThread
import com.doyoonkim.knutice.domain.NoticeDummySource
import com.doyoonkim.knutice.model.NoticeCategory
import com.doyoonkim.knutice.model.NoticesPerPage
Expand All @@ -26,6 +27,7 @@ class NoticeLocalRepository @Inject constructor(
) {
private var localData: TopThreeNotices? = null

@WorkerThread
fun getTopThreeNotice(isDummy: Boolean = false): Flow<TopThreeNotices> {
if (isDummy) {
return channelFlow<TopThreeNotices> {
Expand Down

0 comments on commit 21c2941

Please sign in to comment.