Skip to content

High performance self-hosted photo and video management solution.

334 B
Raw Blame
class ImmichPlugin: NSObject {
  var detached: Bool
  
  override init() {
    detached = false
    super.init()
  }
  
  func detachFromEngine() {
    self.detached = true
  }
  
  func completeWhenActive<T>(for completion: @escaping (T) -> Void, with value: T) {
    guard !self.detached else { return }
    completion(value)
  }
}