RxJava
rx.concurrency
Class NewThreadScheduler
java.lang.Object
   rx.Scheduler
rx.Scheduler
       rx.concurrency.NewThreadScheduler
rx.concurrency.NewThreadScheduler
- public class NewThreadScheduler 
- extends Scheduler
Schedules work on a new thread.
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NewThreadScheduler
public NewThreadScheduler()
getInstance
public static NewThreadScheduler getInstance()
- 
 
schedule
public <T> Subscription schedule(T state,
                                 Func2<Scheduler,T,Subscription> action)
- Description copied from class: Scheduler
- Schedules a cancelable action to be executed.
 
- 
- Specified by:
- schedulein class- Scheduler
 
- 
- Parameters:
- state- State to pass into the action.
- action- Action to schedule.
- Returns:
- a subscription to be able to unsubscribe from action.
 
schedule
public <T> Subscription schedule(T state,
                                 Func2<Scheduler,T,Subscription> action,
                                 long delay,
                                 java.util.concurrent.TimeUnit unit)
- Description copied from class: Scheduler
- Schedules a cancelable action to be executed in delayTime.
 
- 
- Specified by:
- schedulein class- Scheduler
 
- 
- Parameters:
- state- State to pass into the action.
- action- Action to schedule.
- delay- Time the action is to be delayed before executing.
- unit- Time unit of the delay time.
- Returns:
- a subscription to be able to unsubscribe from action.