Skip to content

Commit

Permalink
[feature] #12 QuitProfileDropUseCase 구현
Browse files Browse the repository at this point in the history
- 프로필 드랍을 종료하는 유즈케이스 입니다.

Co-Authored-By: YOON JI SEONG <[email protected]>
  • Loading branch information
Kelly-Chui and green-yoon87 committed Jan 14, 2025
1 parent 3f4930a commit 9e277ed
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// QuitProfileDropUseCase.swift
// SniffMeet
//
// Created by Kelly Chui on 1/14/25.
//

import Foundation

protocol QuitProfileDropUseCase {
func execute()
}

struct QuitProfileDropUseCaseImpl: QuitProfileDropUseCase {
let niManager: NIManager

init(niManager: NIManager) {
self.niManager = niManager
}

func execute() {
Task(priority: .high) {
niManager.endSession()
}
}
}

0 comments on commit 9e277ed

Please sign in to comment.