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

11 lines
377 B
Swift

// This simulates a pre-Swift5.9 concurrency library with an __owned declaration rather than consuming.
// 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: __owned ExecutorJob)
}