Skip to content

Commit 0129aed

Browse files
committed
Fix SerialSequenceExecutor accessibility
1 parent b415c6e commit 0129aed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/Concurrency/Executor/SerialSequenceExecutor.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import Foundation
2424
/// challenging. Production code should use `ConcurrentSequenceExecutor`.
2525
/// - seeAlso: `SequenceExecutor`.
2626
/// - seeAlso: `Task`.
27-
class SerialSequenceExecutor: SequenceExecutor {
27+
public class SerialSequenceExecutor: SequenceExecutor {
28+
29+
/// Initializer.
30+
public init() {}
2831

2932
/// Execute a sequence of tasks serially from the given initial task
3033
/// on the caller thread.
@@ -38,7 +41,7 @@ class SerialSequenceExecutor: SequenceExecutor {
3841
/// by this closure are executed serially on the initial caller thread.
3942
/// - returns: The execution handle that allows control and monitoring
4043
/// of the sequence of tasks being executed.
41-
func executeSequence<SequenceResultType>(from initialTask: Task, with execution: @escaping (Task, Any) -> SequenceExecution<SequenceResultType>) -> SequenceExecutionHandle<SequenceResultType> {
44+
public func executeSequence<SequenceResultType>(from initialTask: Task, with execution: @escaping (Task, Any) -> SequenceExecution<SequenceResultType>) -> SequenceExecutionHandle<SequenceResultType> {
4245
let handle: SequenceExecutionHandleImpl<SequenceResultType> = SequenceExecutionHandleImpl()
4346
execute(initialTask, with: handle, execution)
4447
return handle

0 commit comments

Comments
 (0)