Skip to content

Commit

Permalink
Merge pull request #81 from Infomaniak/fix-public-access
Browse files Browse the repository at this point in the history
fix: Make BackgroundExecutor public
  • Loading branch information
PhilippeWeidmann committed Nov 8, 2023
2 parents 7d3ad70 + 9fe09a2 commit 1c0134c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/InfomaniakCore/Asynchronous/BackgroundExecutor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1c0134c

Please sign in to comment.