一个老外哥们实现的non-blocking future,可是写法未免太反人类了点。
看来java处理这方面果真是弱项。
http://stackoverflow.com/questions/826212/java-executors-how-to-be-notified-without-blocking-when-a-task-completes
http://fasterjava.blogspot.de/2014/09/writing-non-blocking-executor.html
看要要转向vertx.io / skynet 比较好一些。
0 条评论。