~executor();
Effects: If *this != nullptr, releases shared ownership of, or destroys, the target of *this.