Skip to content

Commit

Permalink
Fix parameter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Oct 20, 2023
1 parent 258eea4 commit 07b2cbd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
20 changes: 10 additions & 10 deletions Sources/Waiter/Wait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public enum WaitError: LocalizedError {
Waits asynchronously for the value of the specified key path to satisfy the provided condition.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The closure that determines whether the value satisfies the condition.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The closure that determines whether the value satisfies the condition.
- Returns: The value of the key path once it satisfies the condition.
Expand Down Expand Up @@ -59,11 +59,11 @@ public func wait<Object: AnyObject, Value>(
Waits asynchronously for the value of the specified key path to become equal to the provided value.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The expected value to wait for.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The expected value to wait for.
- Returns: The value of the key path once it becomes equal to the provided value.
Expand Down
56 changes: 28 additions & 28 deletions Sources/Waiter/Waitable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public protocol Waitable {
Waits asynchronously for the value of the specified key path to satisfy the provided condition.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The closure that determines whether the value satisfies the condition.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The closure that determines whether the value satisfies the condition.
- Returns: The value of the key path once it satisfies the condition.
Expand All @@ -35,11 +35,11 @@ public protocol Waitable {
Waits asynchronously for the value of the specified key path to become equal to the provided value.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The expected value to wait for.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The expected value to wait for.
- Returns: The value of the key path once it becomes equal to the provided value.
Expand All @@ -60,11 +60,11 @@ extension Waitable {
Waits asynchronously for the value of the specified key path to satisfy the provided condition.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The closure that determines whether the value satisfies the condition.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The closure that determines whether the value satisfies the condition.
- Returns: The value of the key path once it satisfies the condition.
Expand All @@ -91,11 +91,11 @@ extension Waitable {
Waits asynchronously for the value of the specified key path to become equal to the provided value.
- Parameters:
- `on`: The object to wait on.
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The expected value to wait for.
- on: The object to wait on.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The expected value to wait for.
- Returns: The value of the key path once it becomes equal to the provided value.
Expand Down Expand Up @@ -124,10 +124,10 @@ extension Waitable where Self: AnyObject {
Waits asynchronously for the value of the specified key path to satisfy the provided condition.
- Parameters:
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The closure that determines whether the value satisfies the condition.
- for: The key path of the value to wait for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The closure that determines whether the value satisfies the condition.
- Returns: The value of the key path once it satisfies the condition.
Expand All @@ -153,10 +153,10 @@ extension Waitable where Self: AnyObject {
Waits asynchronously for the value of the specified key path to become equal to the provided value.
- Parameters:
- `for`: The key path of the value to wait for.
- `duration`: The maximum amount of time to wait for the value to change.
- `interval`: The interval at which to check the value.
- `expecting`: The expected value to wait for.
- for: The key path of the value to wait `for.
- duration: The maximum amount of time to wait for the value to change.
- interval: The interval at which to check the value.
- expecting: The expected value to wait for.
- Returns: The value of the key path once it becomes equal to the provided value.
Expand Down

0 comments on commit 07b2cbd

Please sign in to comment.