3 ms·
It does do that. The only issue you might have is library support, but I have found it to be pretty good. For example Nim has had async HTTP client for a while
by svnpenn 7y ago
It does do that. The only issue you might have is library support, but I have found it to be pretty good. For example Nim has had async HTTP client for a while now, while even Rust is just now getting it.
https://nim-lang.github.io/Nim/httpclient https://nim-lang.github.io/Nim/httpclient
https://github.com/nim-lang/Nim/commit/783087fd https://github.com/nim-lang/Nim/commit/783087fd
- Thaxll 7y agoThe async lib doesn't supports timeout, meaning not usable in production or any serious workload.
- svnpenn 7y agoNeither does JavaScript fetch, I dont get your point
- PMunch 7y agoI can see where you get that idea from, indeed the httpclient module doesn't have timeout flags for it's async recieve. But the asyncdispatch has a withTimeout procedure that should happily take the Future that you get from an async recieve and give you a timeout for it.