2 ms·
No, I don't know, I am talking about general concept. In Java, Future.get() blocks current thread, and it is trivially integrated into explicit threading progr
by riku_iki 3y ago
No, I don't know, I am talking about general concept.
In Java, Future.get() blocks current thread, and it is trivially integrated into explicit threading programming. In Rust, Future.poll() is not blocking, and one would need to rely on some async framework, or build own event loop which can potentially block thread.