Skip to content

Commit 53b475e

Browse files
committed
Fix execution classes accessibility
1 parent 282bf0a commit 53b475e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/Concurrency/Executor/SequenceExecutor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public class SequenceExecutionHandle<SequenceResultType> {
3636
/// completes.
3737
/// - throws: `SequenceExecutionError.awaitTimeout` if the given timeout
3838
/// period elapsed before the sequence execution completed.
39-
func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType {
39+
public func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType {
4040
fatalError("await not yet implemented.")
4141
}
4242

4343
/// Cancel the sequence execution at the point this function is invoked.
44-
func cancel() {}
44+
public func cancel() {}
4545
}
4646

4747
/// The execution of a sequence.

Sources/Concurrency/Executor/Task.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public protocol Task {
4141
// wildcard generics.
4242
open class AbstractTask<ResultType>: Task {
4343

44+
/// Initializer.
45+
open init() {}
46+
4447
/// Execute this task without any type information.
4548
///
4649
/// - note: This method should only be used by internal executor

0 commit comments

Comments
 (0)