Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/InstrumentationBaggage/Baggage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ extension Baggage {

// MARK: - Propagating Baggage

#if swift(>=5.5)
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
#if swift(>=5.5) && canImport(_Concurrency)
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
extension Baggage {
/// A `Baggage` automatically propagated through task-local storage. This API enables binding a top-level `Baggage` and passing it
/// implicitly to any child tasks when using structured concurrency.
Expand Down
4 changes: 2 additions & 2 deletions Tests/InstrumentationBaggageTests/BaggageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ final class BaggageTests: XCTestCase {
}

func test_automaticPropagationThroughTaskLocal() throws {
#if swift(>=5.5)
guard #available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) else {
#if swift(>=5.5) && canImport(_Concurrency)
guard #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) else {
throw XCTSkip("Task locals are not supported on this platform.")
}

Expand Down