owner.getExecutor().execute(ft);
return ft;
}
public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
AsyncInvoker invoker = new DispatchAsyncInvoker(param);
AsyncResponseImpl<T> ft = new AsyncResponseImpl<T>(invoker,asyncHandler);
invoker.setReceiver(ft);
// temp needed so that unit tests run and complete otherwise they may
//not. Need a way to put this in the test harness or other way to do this
//todo: as above
ExecutorService exec = (ExecutorService) owner.getExecutor();