Skip to content

Reconsider Dispose pattern across devices #419

@krwq

Description

@krwq

Multiple devices take SpiDevice/I2cDevice in the constructor and then dispose it later. We should reconsider if this is good approach and if disposing is always expected. Some alternatives:

  • do not dispose the device and let the caller dispose it instead
  • take bool flag (i.e. shouldDispose) and let the caller pick what they want

Metadata

Metadata

Assignees

Labels

Design DiscussionOngoing discussion about design without consensusapi-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.Device.GpioContains types for using general-purpose I/O (GPIO) pins

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions