From 9fe09a2fda53f0cebc35cf39dd648938ffaf81b7 Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Wed, 8 Nov 2023 13:33:30 +0100 Subject: [PATCH] fix: Make BackgroundExecutor public --- .../InfomaniakCore/Asynchronous/BackgroundExecutor.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/InfomaniakCore/Asynchronous/BackgroundExecutor.swift b/Sources/InfomaniakCore/Asynchronous/BackgroundExecutor.swift index 7db6e89..940dcd9 100644 --- a/Sources/InfomaniakCore/Asynchronous/BackgroundExecutor.swift +++ b/Sources/InfomaniakCore/Asynchronous/BackgroundExecutor.swift @@ -19,10 +19,10 @@ import CocoaLumberjackSwift import Foundation -enum BackgroundExecutor { - typealias TaskCompletion = () -> Void - static func executeWithBackgroundTask(_ block: @escaping (@escaping TaskCompletion) -> Void, - onExpired: @escaping () -> Void) { +public enum BackgroundExecutor { + public typealias TaskCompletion = () -> Void + public static func executeWithBackgroundTask(_ block: @escaping (@escaping TaskCompletion) -> Void, + onExpired: @escaping () -> Void) { let taskName = "executeWithBackgroundTask \(UUID().uuidString)" let processInfos = ProcessInfo() let group = TolerantDispatchGroup()