Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
Add documentation for missing members
Browse files Browse the repository at this point in the history
  • Loading branch information
zwaldowski committed Apr 28, 2018
1 parent daf8b63 commit 2c91bdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Task/Either.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
/// A type that can exclusively represent either some result value of a
/// successful computation or a failure with an error.
public protocol Either: CustomStringConvertible, CustomDebugStringConvertible {
/// One of the two possible results.
///
/// By convention, the left side is used to hold an error value.
associatedtype Left = Error

/// One of the two possible results.
///
/// By convention, the right side is used to hold a correct value.
associatedtype Right

/// Derive a result from a failable function.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Task/TaskGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import Dispatch
public struct TaskGroup {

private let group = DispatchGroup()

/// Creates the empty task group.
public init() {}

private var queue: DispatchQueue {
Expand Down

0 comments on commit 2c91bdf

Please sign in to comment.