Skip to content

Commit 78fe329

Browse files
authored
Merge pull request #16 from uber/execution-handle_accessibility
Fix SequenceExecutionHandle accessibility
2 parents 42b678b + 971f284 commit 78fe329

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/Concurrency/Executor/SequenceExecutor.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public enum SequenceExecutionError: Error {
2626
/// and monitoring of the said sequence of tasks.
2727
// This cannot be a protocol, since `SequenceExecutor` references this as a
2828
// type. Protocols with associatedType cannot be directly used as types.
29-
public class SequenceExecutionHandle<SequenceResultType> {
29+
open class SequenceExecutionHandle<SequenceResultType> {
30+
31+
/// Initializer.
32+
public init() {}
3033

3134
/// Block the caller thread until the sequence of tasks all finished
3235
/// execution or the specified timeout period has elapsed.
@@ -36,12 +39,12 @@ public class SequenceExecutionHandle<SequenceResultType> {
3639
/// completes.
3740
/// - throws: `SequenceExecutionError.awaitTimeout` if the given timeout
3841
/// period elapsed before the sequence execution completed.
39-
public func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType {
42+
open func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType {
4043
fatalError("await not yet implemented.")
4144
}
4245

4346
/// Cancel the sequence execution at the point this function is invoked.
44-
public func cancel() {}
47+
open func cancel() {}
4548
}
4649

4750
/// The execution of a sequence.

0 commit comments

Comments
 (0)