Skip to content

Commit

Permalink
Add a workaround for SR-11647 regression in OperationQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc authored and kzaher committed Dec 15, 2019
1 parent 1af345a commit cc384a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/RxSwiftTests/Observable+ObserveOnTests.swift
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -446,7 +446,14 @@ class ObservableObserveOnTestConcurrentSchedulerTest: ObservableObserveOnTestBas


let stop = BehaviorSubject(value: 0) 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() let scheduler = createScheduler()
#endif


let condition = NSCondition() let condition = NSCondition()


Expand Down

0 comments on commit cc384a1

Please sign in to comment.