Skip to content

Commit

Permalink
♻️ :: [#237] DesignSystem / AppliedStudentCardView Task.detached, awa…
Browse files Browse the repository at this point in the history
…it MainActor.run로 수정
  • Loading branch information
junseopark0331 authored and uuuunseo committed Apr 21, 2024
1 parent 34e1a01 commit 395e083
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public final class AppliedStudentCardView: UIView {
priority: .high
)

imageTask = Task {
imageTask = Task.detached {
let image = try await ImagePipeline.shared.image(for: request)
guard !Task.isCancelled else { return }
DispatchQueue.main.async {
await MainActor.run {
self.userImageView.image = image
}
}
Expand Down

0 comments on commit 395e083

Please sign in to comment.