What if I need to return an object from thread's runnable object?
<p>What I need is to return <code>token</code> object as a result of <code>adapter.authenticate()</code> operation placed in thread. Have no idea how to return an object from there, please advice. Thank you.</p>

<pre><code>public Token authenticate(final String email, final String password) {

        Thread mThread = new Thread(new Runnable() {

            @Override
            public void run() {
                try {
                    token = adapter.authenticate(email, password); // I need token to return with authenticate() method.

                } catch (NotAuthenticatedException e) {

                }
            }
        });
        mThread.start();
    }
</code></pre>
