nim-libp2p
nim-libp2p copied to clipboard
Yamux: Remove trySend AsyncSpawn
AsyncSpawn, in this specific case is clearly overkill. AsyncSpawn is not recommanded as it is uncontrollable, and, here, it could easily be replaced by another method which is safer such as an AsyncQueue or just storing the Future in the Yamux object.