JavaScript is disabled on your browser.
Skip navigation links
gnu.mapping

Class Future<T>

  • All Implemented Interfaces:
    Lazy<T>, java.lang.Runnable


    public class Future<T>
    extends java.lang.Thread
    implements Lazy<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields
      Modifier and Type Field and Description
      RunnableClosure<T> closure
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors
      Constructor and Description
      Future (Procedure action)
      Future (Procedure action, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      CallContext getCallContext ()
      Get the CallContext we use for this Thread.
      T getValue ()
      Return the actual value.
      static Future make (Procedure action, Environment penvironment, gnu.kawa.io.InPort in, gnu.kawa.io.OutPort out, gnu.kawa.io.OutPort err)
      void run ()
      java.lang.String toString ()
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Future

        public Future(Procedure action,
         gnu.kawa.io.InPort in,
         gnu.kawa.io.OutPort out,
         gnu.kawa.io.OutPort err)
    • Method Detail

      • make

        public static Future make(Procedure action,
         Environment penvironment,
         gnu.kawa.io.InPort in,
         gnu.kawa.io.OutPort out,
         gnu.kawa.io.OutPort err)
      • getCallContext

        public final CallContext getCallContext()
        Get the CallContext we use for this Thread.
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • getValue

        public T getValue()
        Description copied from interface: Lazy
        Return the actual value. Note that getValue() may return this, if this object isn't actually lazy. It may also return another lazy value. Normally you should use Promise.force{val} to extra a non-lazy (eager) value.
        Specified by:
        getValue in interface Lazy<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Thread
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /