summaryrefslogtreecommitdiffhomepage
path: root/ios/PacketTunnelCore/Actor/AnyTask.swift
blob: 40d723b40202f9f0023d3b4cd86c8dce42f4ae9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
//  AnyTask.swift
//  PacketTunnel
//
//  Created by pronebird on 28/08/2023.
//  Copyright © 2023 Mullvad VPN AB. All rights reserved.
//

import Foundation

/// A type-erased `Task`.
public protocol AnyTask: Sendable {
    /// Cancel task.
    func cancel()
}

extension Task: AnyTask {}