
com.threerings.util.Resulting Maven / Gradle / Ivy
//
// $Id: Resulting.java 6702 2011-09-27 04:58:08Z ray $
package com.threerings.util;
import com.google.common.base.Function;
import com.google.common.base.Objects;
import com.samskivert.util.ArrayUtil;
import com.samskivert.util.IntResultListener;
import com.samskivert.util.Invoker;
import com.samskivert.util.Logger;
import com.samskivert.util.ResultListener;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationCodes;
import com.threerings.presents.server.InvocationException;
import static com.threerings.NaryaLog.log;
/**
* A chainable ResultListener, InvocationListener, and Invoker.Unit all in one.
*
* TODO: add some examples of different usages.
*/
public class Resulting extends Invoker.Unit
implements ResultListener,
InvocationService.ConfirmListener, InvocationService.ResultListener
{
/** A handy Object->Void function for when you wish to chain to a ResultListener. */
public static final Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy