Method ReadCommandsAsync
ReadCommandsAsync(CancellationToken)
Asynchronously reads the contents of the Commands register.
public Task<ControllerCommand> ReadCommandsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task<ControllerCommand>
A task that represents the asynchronous read operation. The Result property contains the register payload.