ReadEventAsync(CancellationToken) Method

Definition

Assembly XenoAtom.Terminal.dll

Reads the next event asynchronously.

public ValueTask<TerminalEvent> ReadEventAsync(CancellationToken cancellationToken = default(CancellationToken))

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

ValueTask<TerminalEvent>
The next terminal event.

Remarks

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