This can be useful in many situations. We can probably also make it accept a `Service`. _Originally posted by @llucax in https://github.com/frequenz-floss/frequenz-sdk-python/pull/1081#pullrequestreview-2352150102_