-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] #12 QuitProfileDropUseCase 구현
- 프로필 드랍을 종료하는 유즈케이스 입니다. Co-Authored-By: YOON JI SEONG <[email protected]>
- Loading branch information
1 parent
3f4930a
commit 9e277ed
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
SniffMeet/SniffMeet/Source/UseCase/LocalNetworkUseCase/QuitProfileDropUseCase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} | ||
} |