Ejemplo n.º 1
0
        private IEnumerator<IYield> Task1(Task task)
        {
            //System.Console.WriteLine("test");
            task.Response(new JValue(321));

            Netronics.Scheduling.Scheduler.Default.RunMicrothread(0, new Microthread(()=>TestMethod1(task.GetAnt())));
            yield return null;
        }
Ejemplo n.º 2
0
 public void ReceiveTask(int tId, int type, JToken o)
 {
     var taskObj = new Task(this, tId, type, o);
     var task = Kernel.GetKernel().GetTask(type);
     Scheduling.Scheduler.Default.RunMicrothread(tId, new Microthread(() => task(taskObj)));
 }