Skip to content

Commit

Permalink
More Sendable conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Nov 20, 2023
1 parent 8e01636 commit 221b1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/HummingbirdXCT/HBXCTApplication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import NIOHTTP1
import ServiceLifecycle

/// Response structure returned by XCT testing framework
public struct HBXCTResponse {
public struct HBXCTResponse: Sendable {
/// response status
public let status: HTTPResponseStatus
/// response headers
Expand Down
2 changes: 1 addition & 1 deletion Sources/HummingbirdXCT/TestHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct TimeoutError: Error {}
/// - timeout: Amount of time allowed for the task to run
/// - process: Task to run
/// - Returns: Result of task
public func withTimeout<T>(timeout: Duration, _ process: @escaping @Sendable () async throws -> T) async throws -> T {
public func withTimeout<T: Sendable>(timeout: Duration, _ process: @escaping @Sendable () async throws -> T) async throws -> T {
return try await withThrowingTaskGroup(of: T.self) { group in
group.addTask {
try await process()
Expand Down

0 comments on commit 221b1d8

Please sign in to comment.