Skip to content

As recommended in the idling resource analysis doc, IdlingResource implementations should call onTransitionToIdle after configuring isIdleNow.#2483

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_913798608
Open

As recommended in the idling resource analysis doc, IdlingResource implementations should call onTransitionToIdle after configuring isIdleNow.#2483
copybara-service[bot] wants to merge 1 commit into
mainfrom
piper_913798608

Conversation

@copybara-service
Copy link
Copy Markdown

As recommended in the idling resource analysis doc, IdlingResource implementations should call onTransitionToIdle after configuring isIdleNow.
The instrumentation implementation previously threw an IllegalStateException if it observed a transition to idle without onTransitionToIdle being called first. This is downgraded to a warning to avoid flakiness and support the recommended order of operations.
Documentation in IdlingResource is updated to reflect this recommendation.

…plementations should call onTransitionToIdle after configuring isIdleNow.

The instrumentation implementation previously threw an IllegalStateException if it observed a transition to idle without onTransitionToIdle being called first. This is downgraded to a warning to avoid flakiness and support the recommended order of operations.
Documentation in IdlingResource is updated to reflect this recommendation.

PiperOrigin-RevId: 913798608
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant