ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.37k stars 4.17k forks source link

Allow VirtualTimeScheduler to run on any thread #2610

Open danielt1263 opened 3 months ago

danielt1263 commented 3 months ago

…as long as critical methods are all called on the same thread.

This is designed to fix issue #2609

danielt1263 commented 3 months ago

As far as I can tell, this is 100% backwards compatible and doesn't require any API change from users of the library. It may not solve every future use-case that Swift Testing might throw at it, but it solves the single most obvious one.

I see no reason that this can't be accepted into the next minor release/update.

bennnjamin commented 2 months ago

What's the hold up in getting this merged? Would love to start being able to migrate our RxSwift tests to Swift Testing @nikolaykasyanov @danielt1263

freak4pc commented 3 weeks ago

We'll need someone with a meaningful RxSwift-based test suite to test this to make sure it doesn't break existing tests.