public static MultiYield AddNewMission(System.Object param, Func <System.Object, List <TrafficMessage> > callback)
        {
            MultiYield  my = new MultiYield();
            ThreadParam tp = new ThreadParam(my, callback);

            ThreadPool.QueueUserWorkItem(new WaitCallback(tp.Callback), param);

            return(my);
        }
 public ThreadParam(MultiYield tmy, Func <System.Object, List <TrafficMessage> > tcallback)
 {
     my       = tmy;
     callback = tcallback;
 }