Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Sources/Concurrency/Executor/SequenceExecutor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<SequenceResultType> {
open class SequenceExecutionHandle<SequenceResultType> {

/// Initializer.
public init() {}

/// Block the caller thread until the sequence of tasks all finished
/// execution or the specified timeout period has elapsed.
Expand All @@ -36,12 +39,12 @@ public class SequenceExecutionHandle<SequenceResultType> {
/// 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.
Expand Down