quinn
quinn copied to clipboard
Avoiding unbounded channels
Is it possible to avoid using unbounded channels? My attempts to do so have lead to intermittent deadlocks that I have not successfully been able to debug.
This should work fine. The unbounded channels are a matter of implementation convenience, not necessity. It's painful to wrap asynchronous operations in hand-written futures, but we'll likely move away from them whenever we migrate to async/await.