When dispatching a command, one way to wait for command completion before continuing, is to use a FutureCallback and call it’s get() method right?
I’ve seen in a couple of Allard’s post’s that he thinks calling get() is kind of ugly - I totally agree on this. Especially in cases where I only want to wait, I’m not interested in the result (so get doesn’t make any sense here).
Looking at the FutureCallback API I see awaitCompletion(long timeout, TimeUnit unit). This method is prettier, however there’s no no-args awaitCompletion(). What’s the reason for this? I would rather use this one than get()…
/Alex