Skip to content

Conversation

@silver-eunjoo
Copy link
Collaborator

🛰️ Issue Number

🪐 작업 내용

  1. AtomicBoolean answered 를 Room 에 추가했습니다.
  • 채팅으로 정답을 맞혔을 때, false -> true로 바꿔줍니다.
  • 만약, 찰나에 timeout이 실행됐을 때는, 이미 answered가 true일 때는, 로직을 실행하지 않도록 return 됩니다.
  • 채팅 정답 인정 로직에서는, 타이머를 취소한 후, 다시 true -> false로 값을 복구해줍니다.

📚 Reference

✅ Check List

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

@silver-eunjoo silver-eunjoo self-assigned this Jul 30, 2025
@silver-eunjoo silver-eunjoo added the enhancement New feature or request label Jul 30, 2025
@silver-eunjoo silver-eunjoo linked an issue Jul 30, 2025 that may be closed by this pull request
4 tasks
Copy link
Collaborator

@LimKangHyun LimKangHyun left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Collaborator

@jiwon1217 jiwon1217 left a comment

Choose a reason for hiding this comment

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

CAS를 활용한 동시성 처리라니,, 멋..져,,

@silver-eunjoo silver-eunjoo merged commit fee0f68 into dev Jul 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 채팅 요청에서의 동기화 및 동시성 제어

5 participants