/// <summary> /// This finally will always run on the same thread as the last task that runs /// </summary> public ITask Finally(Action handler) { Guard.ArgumentNotNull(handler, "handler"); finallyHandler += handler; DependsOn?.Finally(handler); return(this); }