-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ 문자열 상수로 변경, 취소 가능한 서스펜드 변경 #89
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔끔쓰~~~
@@ -26,9 +26,9 @@ class RunnerDataSourceImpl(private val db: FirebaseFirestore) : RunnerDataSource | |||
|
|||
override suspend fun startRunning(uid: String): Boolean { | |||
if (uid.isBlank()) return false | |||
return suspendCoroutine { continuation -> | |||
return suspendCancellableCoroutine { continuation -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시.....cancellable일 때 뭐가 더 좋은건지 다시 설명해주실 수 있을까요.............불량학생이라 죄송합니다 교수님...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
재수강하러 왔습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
공식 문서에서 prompt cancellation guarantee 라고 표현하는데요.
일시 중단된 동안 현재 코루틴의 작업이 취소된 경우 작업 재개하지 않고 중단하게 됩니다!
@@ -26,9 +26,9 @@ class RunnerDataSourceImpl(private val db: FirebaseFirestore) : RunnerDataSource | |||
|
|||
override suspend fun startRunning(uid: String): Boolean { | |||
if (uid.isBlank()) return false | |||
return suspendCoroutine { continuation -> | |||
return suspendCancellableCoroutine { continuation -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
재수강하러 왔습니다
😎 작업 내용
🧐 변경된 내용
🥳 동작 화면
🤯 이슈 번호