Package com.stuffwithstuff.magpie.interpreter

Examples of com.stuffwithstuff.magpie.interpreter.Routine


  @Doc("Creates a new thread and runs the function concurrently on it.")
  public static class Run implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      FnObj function = right.asFn();
     
      Routine routine = new Routine(context, function);
      routine.start();
     
      return context.nothing();
    }
View Full Code Here

TOP

Related Classes of com.stuffwithstuff.magpie.interpreter.Routine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.