Skip to content
Permalink
Browse files

Add a workaround for SR-11647 regression in OperationQueue

  • Loading branch information
freak4pc authored and kzaher committed Oct 21, 2019
1 parent 1af345a commit cc384a14790e11fa4aec304a34dc9f93a4acb33c
Showing with 7 additions and 0 deletions.
  1. +7 −0 Tests/RxSwiftTests/Observable+ObserveOnTests.swift
@@ -446,7 +446,14 @@ class ObservableObserveOnTestConcurrentSchedulerTest: ObservableObserveOnTestBas

let stop = BehaviorSubject(value: 0)

#if os(Linux)
/// A regression in the Swift 5.1 compiler causes a hang
/// when using OperationQueue concurrency:
/// https://bugs.swift.org/browse/SR-11647
let scheduler = ConcurrentDispatchQueueScheduler(qos: .default)
#else
let scheduler = createScheduler()
#endif

let condition = NSCondition()

0 comments on commit cc384a1

Please sign in to comment.
You can’t perform that action at this time.