@@ -13,29 +13,29 @@ object Schedulers {
1313 /**
1414 * Returns a [[rx.lang.scala.Scheduler ]] that executes work immediately on the current thread.
1515 */
16- def immediate : Scheduler = rx.concurrency.Schedulers .immediate()
16+ def immediate : Scheduler = Scheduler ( rx.concurrency.Schedulers .immediate() )
1717
1818 /**
1919 * Returns a [[rx.lang.scala.Scheduler ]] that queues work on the current thread to be executed after the current work completes.
2020 */
21- def currentThread : Scheduler = rx.concurrency.Schedulers .currentThread()
21+ def currentThread : Scheduler = Scheduler ( rx.concurrency.Schedulers .currentThread() )
2222
2323 /**
2424 * Returns a [[rx.lang.scala.Scheduler ]] that creates a new {@link Thread} for each unit of work.
2525 */
26- def newThread : Scheduler = rx.concurrency.Schedulers .newThread
26+ def newThread : Scheduler = Scheduler ( rx.concurrency.Schedulers .newThread)
2727
2828 /**
2929 * Returns a [[rx.lang.scala.Scheduler ]] that queues work on an `java.util.concurrent.Executor`.
3030 *
3131 * Note that this does not support scheduled actions with a delay.
3232 */
33- def executor (executor : Executor ): Scheduler = rx.concurrency.Schedulers .executor(executor)
33+ def executor (executor : Executor ): Scheduler = Scheduler ( rx.concurrency.Schedulers .executor(executor) )
3434
3535 /**
3636 * Returns a [[rx.lang.scala.Scheduler ]] that queues work on an `java.util.concurrent.ScheduledExecutorService`.
3737 */
38- def executor (executor : ScheduledExecutorService ): Scheduler = rx.concurrency.Schedulers .executor(executor)
38+ def executor (executor : ScheduledExecutorService ): Scheduler = Scheduler ( rx.concurrency.Schedulers .executor(executor) )
3939
4040 /**
4141 * Returns a [[rx.lang.scala.Scheduler ]] intended for computational work.
@@ -46,7 +46,7 @@ object Schedulers {
4646 *
4747 * Do not perform IO-bound work on this scheduler. Use [[rx.lang.scala.concurrency.Schedulers.threadPoolForIO ]] instead.
4848 */
49- def threadPoolForComputation : Scheduler = rx.concurrency.Schedulers .threadPoolForComputation()
49+ def threadPoolForComputation : Scheduler = Scheduler ( rx.concurrency.Schedulers .threadPoolForComputation() )
5050
5151 /**
5252 * [[rx.lang.scala.Scheduler ]] intended for IO-bound work.
@@ -57,6 +57,6 @@ object Schedulers {
5757 *
5858 * Do not perform computational work on this scheduler. Use [[rx.lang.scala.concurrency.Schedulers.threadPoolForComputation ]] instead.
5959 */
60- def threadPoolForIO : Scheduler = rx.concurrency.Schedulers .threadPoolForIO()
60+ def threadPoolForIO : Scheduler = Scheduler ( rx.concurrency.Schedulers .threadPoolForIO() )
6161
6262}
0 commit comments