ZcashLightClientKit/Sources/ZcashLightClientKit/Utils/DBActor.swift

22 lines
369 B
Swift

//
// DBActor.swift
//
//
// Created by Lukáš Korba on 04-08-2024.
//
import Foundation
/// Global actor used to protect access to the Data DB.
@globalActor
enum DBActor {
typealias ActorType = Actor
actor Actor { }
static let shared = Actor()
static var sharedUnownedExecutor: UnownedSerialExecutor {
shared.unownedExecutor
}
}