Skip to content

Conversation

@AlexanderThaller
Copy link
Owner

Fixes #39

@AlexanderThaller AlexanderThaller self-assigned this Jan 12, 2023
@AlexanderThaller AlexanderThaller linked an issue Jan 12, 2023 that may be closed by this pull request
@AlexanderThaller AlexanderThaller marked this pull request as draft January 12, 2023 08:58
@AlexanderThaller AlexanderThaller added the enhancement New feature or request label Jan 12, 2023
@AlexanderThaller AlexanderThaller added this to the 0.8.6 milestone Jan 12, 2023
/// TODO
#[must_use = "not using the guard will result in the exporter returning the prometheus data \
immediately over http"]
pub fn wait(&self) -> MutexGuard<'_, ()> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is very counterintuitive: when one calls that method, their goal is not to wait for some event, but to lock the exporter while they're performing some operations. Wouldn't it be better to call it lock?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow taking the update lock without waiting

3 participants