# LibTmux.Query.QueryPlan.ExecuteAsync

- **Module:** LibTmux.Query
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Query/QueryPlan.cs#L62
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-query-queryplan-executeasync/

```
LibTmux.Query.QueryPlan.ExecuteAsync(server: Server, cancellationToken: CancellationToken) -> Task<QueryResult<T>>
```

Acquires a fresh snapshot and evaluates this plan.

## Parameters

- `server` (`Server`): The endpoint to inspect without initializing it.
- `cancellationToken` (`CancellationToken`): Stops acquisition, evaluation, and publication.

## Returns

Ordered matches retaining the complete captured graph.
