Skip to content
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

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

yonghanJu
Copy link
Member

😎 작업 내용

  • 문자열 상수로 변경, 취소 가능한 서스펜드 변경

🧐 변경된 내용

  • 파이어 베이스 관련 문자열 상수로 만듬
  • 취소 가능한 서스펜드 코루틴 사용

🥳 동작 화면

  • 동작 화면 없음

🤯 이슈 번호

  • 이슈 없음

Copy link
Member

@soopeach soopeach left a 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 ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시.....cancellable일 때 뭐가 더 좋은건지 다시 설명해주실 수 있을까요.............불량학생이라 죄송합니다 교수님...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재수강하러 왔습니다

Copy link
Member Author

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 ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

재수강하러 왔습니다

@yonghanJu yonghanJu merged commit 8ab338a into develop Dec 9, 2022
@soopeach soopeach deleted the feat/running_tab branch December 10, 2022 17:47
@soopeach soopeach restored the feat/running_tab branch December 10, 2022 17:47
@soopeach soopeach deleted the feat/running_tab branch December 10, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants