What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
The polling for property change is great, but has three major drawbacks that this PR solves without any breaking changes.
What is the current behavior? (You can also link to an open issue here)
The interval is very aggressive (10ms)
It starts polling immediately despite no handlers being attached.
Disconnect does not stop the polling.
What is the new behavior (if this is a feature change)?
The interval is optionally configurable (still defaults to 10ms)
It does not start polling until at least one handler has been attached.
Disconnect now stops the polling interval and clears the handlers.
Other information:
Like I said, this is a features but I think this can make it just a bit better and probably a little more performant.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) The polling for property change is great, but has three major drawbacks that this PR solves without any breaking changes.
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Other information: Like I said, this is a features but I think this can make it just a bit better and probably a little more performant.