public final void listenInlineGenericError ( AsyncWork < T , Exception > sp ) { listenInline ( new AsyncWorkListener < T , TError > ( ) { @ Override public void ready ( T result ) { sp . unblockSuccess ( result ) ; } @ Override public void error ( TError error ) { sp . unblockError ( error ) ; } @ Override public void cancelled ( CancelException event ) { sp . unblockCancel ( event ) ; } } ) ; }
Forward the result error or cancellation to the given AsyncWork .