Future initTask = threadPool.submit(flowTask);
try {
initTask.get(mTimeout, TimeUnit.MILLISECONDS);
} catch (Exception e) {
LogImpl.w(TAG, "timeout for flow: " + getName());
}
long endTime = System.currentTimeMillis();
LogImpl.i(TAG, getName() + " runs " + (endTime - startTime));
Flow is not really finish.Some task may be still running.
And i think flow or Init need a callback,for example in Android loading Activity.