Skip to content

refactor(timeletter): runCatchingCancellable 을 core:domain 경로로 바꾸고 CreateTimeLetterUseCase 의 손 사본을 걷는다 #2264

Open

Description

@OnlyReadOneBook

작업 유형

refactor — 동작 변경 없는 구조·책임·경계 개선

주 담당 모듈

timeletter — 타임레터

개요

#2260 에서 runCatchingCancellable 의 정본을 core:domain(com.afternote.core.domain.result)으로 옮겼고, core:common 의 옛 함수는 위임만 남기고 @Deprecated 를 붙였습니다. timeletter 모듈에 옛 경로 사용처와 손으로 짠 사본이 남아 있습니다.

  • feature/timeletter/presentation 의 import com.afternote.core.common.result.runCatchingCancellable 3개 파일을 com.afternote.core.domain.result.runCatchingCancellable 로 바꿉니다.
  • feature/timeletter/domain 의 CreateTimeLetterUseCase 에 있는 try / catch (CancellationException) { throw } / catch (Throwable) 를 runCatchingCancellable 로 바꿉니다. domain 모듈이 core:common 에 의존할 수 없어 생긴 사본이라, core:domain 의존만으로 쓸 수 있게 된 지금은 필요 없습니다.

완료 조건: timeletter 모듈에 옛 경로 import 와 손 사본이 0건이고, 기존 timeletter 테스트가 그대로 통과합니다. 동작 변경은 없습니다.

참고

선행: #2260(PR #2261) 머지. 위임 함수 자체의 제거는 모든 모듈이 옮긴 뒤 core 쪽 별도 이슈로 합니다.

Metadata

Metadata

Assignees

Labels

area:timeletter타임레터 기능 영역refactor동작 변경 없이 코드 구조·책임·경계를 개선하는 작업

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions