public final void listenInline ( Listener < T > onSuccess ) { listenInline ( new AsyncWorkListener < T , TError > ( ) { @ Override public void ready ( T result ) { onSuccess . fire ( result ) ; } @ Override public void error ( TError error ) { } @ Override public void cancelled ( CancelException event ) { } @ Override public String toString ( ) { return "AsyncWork.listenInline: " + onSuccess ; } } ) ; }
Register a listener to be called only on success with the result .