You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename name to unique_id for BackgroundService (#26)
Using `name` was confusing, as people didn't realize that it is used to
actually identify one of multiple instances. Also people were very prone
to use the class name as `name`, which is redundant as the class name is
also included in `str` and `repr`.
Using `unique_id` makes it more clear that this is used for
identification in logs and that a default is better than passing a
string that is not really unique (like the class name).
Also use `hex()` instead of `str()` to build the default `unique_id`, as
it a more compact representation of the id.
Fixes#7.
0 commit comments