Files
swift-mirror/test/Inputs/clang-importer-sdk/swift-modules-concurrency-consuming-job-param/_Concurrency.swift
2024-07-23 11:05:33 -07:00

11 lines
379 B
Swift

// This simulates a pre-Swift5.9 concurrency library with an consuming declaration rather than __owned.
// This allows us to confirm the compiler and sdk can be mismatched but we'll build correctly.
public struct ExecutorJob: ~Copyable {}
public protocol SerialExecutor {
// pretend old SDK with `__owned` param rather than ``
func enqueue(_ job: consuming ExecutorJob)
}