Skip to content

Commit

Permalink
Deprecate Scheduler.
Browse files Browse the repository at this point in the history
Scheduler API is obsolete and ShadowLooper APIs should be used instead.

Related to #8976

PiperOrigin-RevId: 622908813
  • Loading branch information
brettchabot authored and Copybara-Service committed Apr 8, 2024
1 parent 1eb2d5c commit e527cd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/src/main/java/org/robolectric/util/Scheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
* Scheduler will continue looping through posted events (including future events), advancing
* its clock as it goes.
* </ul>
*
* @deprecated Scheduler APIs only function when using LooperMode.LEGACY. Switch to
* LooperMode.PAUSED and use {@link ShadowLooper} APIs instead.
*/
@Deprecated
public class Scheduler {

/**
Expand Down

0 comments on commit e527cd8

Please sign in to comment.