# Sandbox.Services.Stats.FlushAndWaitAsync

```csharp
static System.Threading.Tasks.Task FlushAndWaitAsync(System.Threading.CancellationToken token = null)
```

Send any pending stats to the backend, will wait until they're available for query before finishing.

### Parameters

- `token` (`System.Threading.CancellationToken`), default `null`

### Returns

`System.Threading.Tasks.Task`

Declared in [Sandbox.Services.Stats](/api/Sandbox.Services.Stats).
Assembly: `Sandbox.Engine`.
