pub async fn shutdown()Expand description
Flushes the PostHog client, waiting for in-flight events to drain.
Reads the client slot, clones the Arc if present (dropping the read
guard before awaiting to avoid holding it across an await point), then
calls client.shutdown().