Skip to content

Commit

Permalink
Mark the AsyncDefaults struct as removed (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
younata committed Oct 2, 2023
1 parent f9b339e commit 832d0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Nimble/Polling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import Dispatch
/// If you are running on a slower machine, it could be useful to increase the default timeout value
/// or slow down poll interval. Default timeout interval is 1, and poll interval is 0.01.
///
/// - Warning: This has been renamed to ``PollingDefaults``. Starting in Nimble 13, the deprecation warning will change to a compiler error (removed). In Nimble 14, `AsyncDefaults` will be removed entirely.
/// - Warning: This has been renamed to ``PollingDefaults``. Starting in Nimble 14, `AsyncDefaults` will be removed entirely.
///
/// For the time being, `AsyncDefaults` will function the same.
/// However, `AsyncDefaults` will be removed in a future release.
@available(*, deprecated, renamed: "PollingDefaults")
@available(*, unavailable, renamed: "PollingDefaults")
public struct AsyncDefaults {
public static var timeout: NimbleTimeInterval {
get {
Expand All @@ -33,7 +33,7 @@ public struct AsyncDefaults {
/// If you are running on a slower machine, it could be useful to increase the default timeout value
/// or slow down poll interval. Default timeout interval is 1, and poll interval is 0.01.
///
/// Note: This used to be known as ``AsyncDefaults``.
/// - Note: This used to be known as ``AsyncDefaults``.
public struct PollingDefaults {
public static var timeout: NimbleTimeInterval = .seconds(1)
public static var pollInterval: NimbleTimeInterval = .milliseconds(10)
Expand Down

0 comments on commit 832d0fa

Please sign in to comment.