public virtual void await()
 {
     log.Info("Await executor ... ");
     executor.join();
     log.Info("Await scheduler ... ");
     scheduler.join();
     log.Info("Await done.");
 }
        public virtual void await()
        {
            if (log.IsDebugEnabled)
            {
                log.Debug("Waiting for tasks of EventsThread to get completed...");
            }

            queue_Renamed.join();

            if (log.IsDebugEnabled)
            {
                log.Debug("Tasks completed");
            }
        }