For those who have wondered how to implement Neal Gafter's example 'for eachConcurrently' API with BGGA Closures, here's one attempt:ForEachConcurrently.java
There's a bonus 'for eachEntryConcurrently' in there as well.
I'm sure it can be improved (suggestions welcome) and it certainly deserves a decent explanation, which is coming, but I'll make one comment at this point:
Adding support for nonlocal transfers across different threads required two lines of code.
Two lines is easy. I like easy. Especially when threads are involved.
7 comments:
Marc,
nice code, congratulations!
Luc Duponcheel
by the way
completionService.submit({ =>
Throwable result = null;
if (!cancelled) {
try {
task.execute();
}
catch (Throwable ex) {
cancelled = true;
result = ex;
}
}
result
});
works fine for me instead of the
anonymous class
Erectile Dysfunction Related Links :
Buy Cialis
Harvard
make money online
internet tips
work from home
Video Tips
Shopping Tips
Car Tips
Computer Tips
Travel Tips
Finance Tips
オナニー
逆援助
SEX
フェラチオ
ソープ
逆援助
出張ホスト
手コキ
おっぱい
フェラチオ
中出し
セックス
デリヘル
包茎
逆援
性欲
live119|live119論壇|
潤滑液|內衣|性感內衣|自慰器|
自慰套|情趣內衣|
G點|性感丁字褲|吊帶襪|
煙火批發|煙火|情趣用品|SM|充氣娃娃|AV|情趣|
衣蝶|丁字褲|無線跳蛋|性感睡衣|
按摩棒|電動按摩棒|飛機杯|自慰套|
角色扮演|跳蛋|情趣跳蛋|
角色扮演,
睡衣,
SM,
潤滑液,
情趣玩具,
愛愛,
視訊美女戀愛ing,
視訊美女kk俱樂部,
視訊kk俱樂部,
跳蛋,
G點,
按摩棒,
跳蛋,
飛機杯,
充氣娃娃,
自慰套,
情趣娃娃,
自慰器,
情趣用品,情趣,
Post a Comment