-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
kind/usabilityUsability of generated code, ergonomics.Usability of generated code, ergonomics.
Milestone
Description
Since ConfigSnapshotReader is being sent through async sequences, we can't take advantage of any non-copyable/non-escapable optimizations on it, which brings the ConfigReader.withSnapshot method into question - why is it a with-style method, when simply returning a snapshot reader would work just fine? ConfigProvider.snapshot() already has this spelling.
This would be a benefit for consistency, because there isn't any reason the ConfigSnapshotReader needs to be scoped, this API shape came from an earlier experiment where we thought we could use a non-copyable/non-escapable type. But right now it's not providing any benefits and is just providing a slightly less ergonomic API for users.
Metadata
Metadata
Assignees
Labels
kind/usabilityUsability of generated code, ergonomics.Usability of generated code, ergonomics.