Use Lazy
for instance creation on sensor classes
#19274
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/enhancement
New feature or request
triage/untriaged
Indicates an issue requires triaging or verification
What would you like to be added
Use the
Lazy
approach like in theLightSensor.cs
class for initialization. Therefore the_initializationAttempted
boolean as well as the sync object can be removed. This also unifies the sensor classes to have a similar and simpler implementation.Note: this issue #19131 startet the refactoring to unify the sensor classes with the
StartStopTypedEventHandler
.Why is this needed
No response
For which platform
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: