Getting a result in the future?
问题 I'm looking to get a result from a method which can take a while to complete and doesn't actually return the object, so I'd like to deal with it as effectively as possible. Here's an example of what I'm trying to achieve: public static void main (String[] args) { Object obj = someMethod(); System.out.println("The object is" + obj + ", wooh!"); } public void callObject() { // Sends request for the object } public void receiveObject(Object object) { // Received the object } public Object