3 ms·
java.nio.channels was introduced in Java SE 7, not 1.4. It also is far from a drop-in replacement for InputStream/OutputStream. Even with Loom's green-threads
by DaiPlusPlus 5y ago
java.nio.channels was introduced in Java SE 7, not 1.4. It also is far from a drop-in replacement for InputStream/OutputStream.
Even with Loom's green-threads (not the original green-threads) async IO in Java will be too otherworldly until Java's language designers cease their intrasigence about adding first-class support for `await`.
- native_samples 5y agoI don't see how you arrived at that conclusion at all. Async/await is always strictly harder to use than green threads. Can you explain precisely why you view them as "otherworldly"?
- DaiPlusPlus 5y ago"Async/await is always strictly harder to use than green threads" I'm sorry but I can't take you seriously after you say something like that.