Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/DistributedCluster/ActorID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ extension _PathRelationships {
/// to confirm whether or not a specific actor is the child of another another (identified by another unique path).
/// Such relationships must be confirmed by using the `_ActorContext.children.hasChild(:UniqueActorPath)` method. TODO: this does not exist yet
///
/// - Parameter path: The path that is suspected to be the parent of `self`
/// - Parameter maybeParentPath: The path that is suspected to be the parent of `self`
/// - Returns: `true` if this [ActorPath] is a direct descendant of `maybeParentPath`, `false` otherwise
public func isChildPathOf(_ maybeParentPath: _PathRelationships) -> Bool {
Array(self.segments.dropLast()) == maybeParentPath.segments // TODO: more efficient impl, without the copying
Expand All @@ -631,7 +631,7 @@ extension _PathRelationships {
/// to confirm whether or not a specific actor is the child of another another (identified by another unique path).
/// Such relationships must be confirmed by using the `_ActorContext.children.hasChild(:UniqueActorPath)` method. TODO: this does not exist yet
///
/// - Parameter path: The path that is suspected to be a child of `self`
/// - Parameter maybeChildPath: The path that is suspected to be a child of `self`
/// - Returns: `true` if this [ActorPath] is a direct ancestor of `maybeChildPath`, `false` otherwise
public func isParentOf(_ maybeChildPath: _PathRelationships) -> Bool {
maybeChildPath.isChildPathOf(self)
Expand Down
2 changes: 1 addition & 1 deletion Sources/DistributedCluster/AsyncResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal protocol _AsyncResult {
/// be removed, so the lesser of the two timeouts will be the effective timeout
/// value for the returned `_AsyncResult`.
///
/// - parameter after: defines a timeout after which the result should be considered failed.
/// - parameter timeout: defines a timeout after which the result should be considered failed.
func withTimeout(after timeout: Duration) -> Self
}

Expand Down
Loading