Package kawa.lang

Class Continuation

  • All Implemented Interfaces:
    Named

    public class Continuation
    extends MethodProc
    A Continuation "represents an entire (default) future for the computation. This implemementation is based on Java exceptions, and is restricted to "upward" (?) continuation (i.e. catch/throw-type uses).
    • Field Detail

      • invoked

        public boolean invoked
      • applyMethodCont

        public static final java.lang.invoke.MethodHandle applyMethodCont
    • Constructor Detail

      • Continuation

        public Continuation​(CallContext ctx)
    • Method Detail

      • applyMethodCont

        public static java.lang.Object applyMethodCont​(Procedure proc,
                                                       CallContext ctx)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • handleException$X

        public static void handleException$X​(java.lang.Throwable ex,
                                             Continuation cont,
                                             CallContext ctx)
                                      throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • handleException

        public static java.lang.Object handleException​(java.lang.Throwable ex,
                                                       Continuation cont)
                                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class Procedure