Class SyncWait<ResultT>

java.lang.Object
dev.getelements.elements.rt.util.SyncWait<ResultT>

public class SyncWait<ResultT> extends Object
Represents a one-way pipe which can be used to relay either an Exception or a successful result. This will only accept the first of an exception or a result whichever comes first.
  • Constructor Details

    • SyncWait

      public SyncWait(Class<?> cls)
      Constructs an instance of SyncWait with the given Class from which to create a Logger instance
      Parameters:
      cls - the Class<?>
    • SyncWait

      public SyncWait(org.slf4j.Logger logger)
      Constructs an instance of SyncWait with the given Logger for logging errors.
      Parameters:
      logger - the Logger
  • Method Details