| java.lang.Object | ||
| ↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
| ↳ | io.reactivex.observers.BaseTestConsumer.TestWaitStrategy | |
Enumeration of default wait strategies when waiting for a specific number of
 items in awaitCount(int, Runnable).
 
History: 2.0.7 - experimental
| Enum Values | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BaseTestConsumer.TestWaitStrategy | SLEEP_1000MS | The current thread sleeps for 1000 milliseconds. | |||||||||
| BaseTestConsumer.TestWaitStrategy | SLEEP_100MS | The current thread sleeps for 100 milliseconds. | |||||||||
| BaseTestConsumer.TestWaitStrategy | SLEEP_10MS | The current thread sleeps for 10 milliseconds. | |||||||||
| BaseTestConsumer.TestWaitStrategy | SLEEP_1MS | The current thread sleeps for 1 millisecond. | |||||||||
| BaseTestConsumer.TestWaitStrategy | SPIN | The wait loop will spin as fast as possible. | |||||||||
| BaseTestConsumer.TestWaitStrategy | YIELD | The current thread will be yielded. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void | run() | ||||||||||
| static BaseTestConsumer.TestWaitStrategy | valueOf(String name) | ||||||||||
| final static TestWaitStrategy[] | values() | ||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Enum | |||||||||||
|  From class
  java.lang.Object | |||||||||||
|  From interface
  java.lang.Comparable | |||||||||||
|  From interface
  java.lang.Runnable | |||||||||||
The current thread sleeps for 1000 milliseconds.
The current thread sleeps for 100 milliseconds.
The current thread sleeps for 10 milliseconds.
The current thread sleeps for 1 millisecond.
The wait loop will spin as fast as possible.