# LibTmux.Mcp.PaneActivityHub.WaitForActivityAsync

- **Module:** LibTmux.Mcp.PaneActivityHub
- **Package:** LibTmux.Mcp
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Mcp/Streaming/PaneActivityHub.cs#L210
- **Page:** https://libtmux.org/en/dotnet/latest/mcp/reference/libtmux-mcp-paneactivityhub-waitforactivityasync/

```
LibTmux.Mcp.PaneActivityHub.WaitForActivityAsync(paneId: string, signalBefore: object?, timeout: TimeSpan, cancellationToken: CancellationToken) -> Task<bool>
```

Waits until a pane prints something, or the time runs out.

## Parameters

- `paneId` (string): The pane to wait on.
- `signalBefore` (object?): The signal captured before the caller last read the pane. Passing the
one taken before the read is what stops output that arrived during it
from being missed.
- `timeout` (TimeSpan): How long to wait at most.
- `cancellationToken` (CancellationToken): Stops waiting.

## Returns

<see langword="true" /> when the pane printed something.
