public DedicatedTaskRunner(Task task) { if(task == null) { throw new NullReferenceException("Task was null"); } this.task = task; this.theThread = new Thread(Run) {IsBackground = true}; this.theThread.Start(); }