Open kluever opened 2 months ago
IMO Scheduler API should have been deprecated at the same time as LooperMode.LEGACY. I'll send out a PR to correct this.
@kluever thanks for the post. These APIs are probably suboptimal. However, they are related to the legacy looper mode, which has been deprecated for 5+ years. There is not much point in investing a significant amount of resources to migrate something that is deprecated and obsolete to a more modern API.
Instead of using an ambiguous (w.r.t. the unit)
long
to represent date/time concepts (like a delay or "now"), please use the appropriatejava.time
types (Duration
orInstant
).There's a bunch of APIs in
org.robolectric.util.Scheduler
that could be improved usingjava.time
types.