You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This function manages the main run loop (`NSRunLoop.mainRunLoop()`) while this function
118
118
/// is executing. Any attempts to touch the run loop may cause non-deterministic behavior.
119
+
@available(*, noasync, message:"the sync version of `waitUntil` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
Copy file name to clipboardExpand all lines: Sources/Nimble/Polling.swift
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ extension SyncExpectation {
99
99
/// @warning
100
100
/// This form of `toEventually` does not work in any kind of async context. Use the async form of `toEventually` if you are running tests in an async context.
101
101
@discardableResult
102
+
@available(*, noasync, message:"the sync version of `toEventually` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `toEventuallyNot` does not work in any kind of async context.
132
133
/// Use the async form of `toEventuallyNot` if you are running tests in an async context.
133
134
@discardableResult
135
+
@available(*, noasync, message:"the sync version of `toEventuallyNot` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `toNotEventually` does not work in any kind of async context.
166
168
/// Use the async form of `toNotEventually` if you are running tests in an async context.
167
169
@discardableResult
170
+
@available(*, noasync, message:"the sync version of `toNotEventually` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `toNever` does not work in any kind of async context.
181
184
/// Use the async form of `toNever` if you are running tests in an async context.
182
185
@discardableResult
186
+
@available(*, noasync, message:"the sync version of `toNever` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `neverTo` does not work in any kind of async context.
215
219
/// Use the async form of `neverTo` if you are running tests in an async context.
216
220
@discardableResult
221
+
@available(*, noasync, message:"the sync version of `neverTo` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `toAlways` does not work in any kind of async context.
230
235
/// Use the async form of `toAlways` if you are running tests in an async context.
231
236
@discardableResult
237
+
@available(*, noasync, message:"the sync version of `toAlways` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
/// This form of `alwaysTo` does not work in any kind of async context.
264
270
/// Use the async form of `alwaysTo` if you are running tests in an async context.
265
271
@discardableResult
272
+
@available(*, noasync, message:"the sync version of `alwaysTo` does not work in async contexts. Use the async version with the same name as a drop-in replacement")
0 commit comments