Skip to content

Eliminate BoardListWatchRequest#interrupt from the gRPC API, make it server-streaming only #2283

Closed
@kittaakos

Description

@kittaakos

Describe the request

Starting the gRPC equivalent of the board list watch requires CLI consumers to create a bidirectional stream. The only reason for this API is to support canceling the watch operation from the client. It should be sufficient to cancel the watch command by canceling the request via an abort signal.

Please make the following changes to provide a better API:

Thank you!

Describe the current behavior

See the description how it works now.

Arduino CLI version

0.34.0

Operating system

macOS

Operating system version

13.5

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Labels

topic: codeRelated to content of the project itselftopic: gRPCRelated to the gRPC interfacetype: enhancementProposed improvement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions