File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Sources/Concurrency/Executor Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments