diff --git a/Sources/Concurrency/Executor/SequenceExecutor.swift b/Sources/Concurrency/Executor/SequenceExecutor.swift index be61f00..03c9568 100644 --- a/Sources/Concurrency/Executor/SequenceExecutor.swift +++ b/Sources/Concurrency/Executor/SequenceExecutor.swift @@ -26,7 +26,10 @@ public enum SequenceExecutionError: Error { /// and monitoring of the said sequence of tasks. // This cannot be a protocol, since `SequenceExecutor` references this as a // type. Protocols with associatedType cannot be directly used as types. -public class SequenceExecutionHandle { +open class SequenceExecutionHandle { + + /// Initializer. + public init() {} /// Block the caller thread until the sequence of tasks all finished /// execution or the specified timeout period has elapsed. @@ -36,12 +39,12 @@ public class SequenceExecutionHandle { /// completes. /// - throws: `SequenceExecutionError.awaitTimeout` if the given timeout /// period elapsed before the sequence execution completed. - public func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType { + open func await(withTimeout timeout: TimeInterval?) throws -> SequenceResultType { fatalError("await not yet implemented.") } /// Cancel the sequence execution at the point this function is invoked. - public func cancel() {} + open func cancel() {} } /// The execution of a sequence.