We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, in a very simple use case debounce seems to crash, but it might just be me using the cx proxy wrong?
This code crashes with EXC_BAD_INSTRUCTION:
let pub = PassthroughSubject<Int, Never>() pub .debounce(for: 2.0, scheduler: DispatchQueue.global().cx) .sink(receiveValue: { print($0) }) .store(in: &subscribers) (0...10).forEach(pub.send) //Crashes here: Thread 1: EXC_BAD_INSTRUCTION
The text was updated successfully, but these errors were encountered:
fix: scheduler time overflow, fix #44
c8d95ba
Fixed. The problem is actually caused by DispatchQueue, not Debounce
DispatchQueue
Debounce
Sorry, something went wrong.
@luoxiu The problematic code was not tested. We should introduce code coverage analysis.
Thank you! Quick dispatch, so to speak :)
74ac836
Successfully merging a pull request may close this issue.
Hi, in a very simple use case debounce seems to crash, but it might just be me using the cx proxy wrong?
This code crashes with EXC_BAD_INSTRUCTION:
The text was updated successfully, but these errors were encountered: