diff --git a/SniffMeet/SniffMeet/Source/UseCase/LocalNetworkUseCase/QuitProfileDropUseCase.swift b/SniffMeet/SniffMeet/Source/UseCase/LocalNetworkUseCase/QuitProfileDropUseCase.swift new file mode 100644 index 0000000..bbd0254 --- /dev/null +++ b/SniffMeet/SniffMeet/Source/UseCase/LocalNetworkUseCase/QuitProfileDropUseCase.swift @@ -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() + } + } +}