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
fatalError("This method is not available when using the Swift concurrency waiter.")
298
-
#else
299
283
returnawaitwithCheckedContinuation{ continuation in
300
284
// This function operates by blocking a background thread instead of one owned by libdispatch or by the
301
285
// Swift runtime (as used by Swift concurrency.) To ensure we use a thread owned by neither subsystem, use
@@ -305,7 +289,6 @@ open class XCTWaiter {
305
289
continuation.resume(returning: result)
306
290
}
307
291
}
308
-
#endif
309
292
}
310
293
311
294
/// Convenience API to create an XCTWaiter which then waits on an array of expectations for up to the specified timeout, and optionally specify whether they
@@ -324,17 +307,9 @@ open class XCTWaiter {
324
307
/// expectations are not fulfilled before the given timeout. Default is the line
325
308
/// number of the call to this method in the calling file. It is rare to
326
309
/// provide this parameter when calling this method.
327
-
#if DISABLE_XCTWAITER
328
-
@available(*, unavailable, message:"Expectation-based waiting is not available when using the Swift concurrency waiter.")
/// Convenience API to create an XCTWaiter which then waits on an array of expectations for up to the specified timeout, and optionally specify whether they
@@ -353,17 +328,9 @@ open class XCTWaiter {
353
328
/// expectations are not fulfilled before the given timeout. Default is the line
354
329
/// number of the call to this method in the calling file. It is rare to
355
330
/// provide this parameter when calling this method.
356
-
#if DISABLE_XCTWAITER
357
-
@available(*, unavailable, message:"Expectation-based waiting is not available when using the Swift concurrency waiter.")
0 commit comments