ReadEventsAsync(CancellationToken) Method

Definition

Assembly XenoAtom.Terminal.dll

Reads terminal input events as an async stream.

public IAsyncEnumerable<TerminalEvent> ReadEventsAsync(CancellationToken cancellationToken = default(CancellationToken))

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

IAsyncEnumerable<TerminalEvent>
An async stream of terminal events.

Remarks

When ImplicitStartInput is enabled, this method starts the input loop automatically.