mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
11 lines
379 B
Swift
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)
|
|
}
|