Exemplo n.º 1
0
 public async Task AsyncNext(ParamType param, int timeout = RobotRaconteurNode.RR_TIMEOUT_INFINITE)
 {
     using (MessageElement m = RobotRaconteurNode.s.PackAnyType <ParamType>("parameter", ref param))
     {
         AsyncRequestDirectorImpl d = new AsyncRequestDirectorImpl();
         int id = RRObjectHeap.AddObject(d);
         inner_gen.AsyncNext(m, timeout, d, id);
         var mret = await d.Task;
     }
 }
Exemplo n.º 2
0
        public async Task <ReturnType> AsyncNext(int timeout = RobotRaconteurNode.RR_TIMEOUT_INFINITE)
        {
            AsyncRequestDirectorImpl d = new AsyncRequestDirectorImpl();
            int id = RRObjectHeap.AddObject(d);

            inner_gen.AsyncNext(null, timeout, d, id);
            var mret = await d.Task;

            return(RobotRaconteurNode.s.UnpackAnyType <ReturnType>(mret));
        }