mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-10 05:07:39 +00:00
Add comment explaining usage Schedulers.trampoline in detail
This commit is contained in:
@@ -8,7 +8,10 @@ import org.junit.runner.Description
|
||||
import org.junit.runners.model.Statement
|
||||
|
||||
/**
|
||||
* Always run on [Schedulers.trampoline]
|
||||
* Always run on [Schedulers.trampoline].
|
||||
* This executes the task in the current thread in FIFO manner.
|
||||
* This ensures that tasks are run quickly inside the tests
|
||||
* and not scheduled away to another thread for later execution
|
||||
*/
|
||||
class TrampolineSchedulerRule : TestRule {
|
||||
|
||||
|
Reference in New Issue
Block a user