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
2 changes: 1 addition & 1 deletion Sources/Testing/Running/Runner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extension Runner {
/// type at runtime, it may be better-suited for ``Configuration`` instead.
private struct _Context: Sendable {
/// A serializer used to reduce parallelism among test cases.
var testCaseSerializer: Serializer?
var testCaseSerializer: Serializer<Void>?
}

/// Apply the custom scope for any test scope providers of the traits
Expand Down
7 changes: 6 additions & 1 deletion Sources/Testing/Support/Serializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ var defaultParallelizationWidth: Int {
/// items do not start running; they must wait until the suspended work item
/// either returns or throws an error.
///
/// The generic type parameter `T` is unused. It avoids warnings when multiple
/// copies of the testing library are loaded into a runner process on platforms
/// which use the Objective-C runtime, due to non-generic actor types being
/// implemented as classes there.
///
/// This type is not part of the public interface of the testing library.
final actor Serializer {
final actor Serializer<T> {
/// The maximum number of work items that may run concurrently.
nonisolated let maximumWidth: Int

Expand Down