Skip to content

race: 승자 확정 시 패자 취소 실패가 승자 반환을 중단시킴 (타임아웃 경로와 비대칭) #20

Description

@serithemage

PR #19 CodeSolar 3차 리뷰의 non-blocking 관찰. 승자 확정 후 패자 취소가 Promise.all이라 한 리전의 setDesired(0) 실패 시 runRace가 throw해 승자 정보가 호출자에게 전달되지 않음. 타임아웃 경로(allSettled+실패 보고)와 비대칭. 개선: 패자 취소도 allSettled로 바꾸고 실패 리전은 로그 고지 후 승자는 정상 반환. 위험도 낮음(취소 실패 드묾, state 저장으로 정리 가능).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions