How to test DispatchQueue in Swift
Issue #646
Sync the DispatchQueue
Pass DispatchQueue and call queue.sync to sync all async works before asserting
Use mock
Use DispatchQueueType and in mock, call the work immediately
1 | import Foundation |
Issue #646
Pass DispatchQueue and call queue.sync to sync all async works before asserting
Use DispatchQueueType and in mock, call the work immediately
1 | import Foundation |