public final void listenInline ( Listener < T > onready , Listener < TError > onerror , Listener < CancelException > oncancel ) { listenInline ( new AsyncWorkListener < T , TError > ( ) { @ Override public void ready ( T result ) { onready . fire ( result ) ; } @ Override public void error ( TError error ) { onerror . fire ( error ) ; } @ Override public void cancelled ( CancelException event ) { oncancel . fire ( event ) ; } @ Override public String toString ( ) { return "AsyncWork.listenInline: " + onready ; } } ) ; }
Call one of the given listener depending on result .