-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Description
I think it is a mistake to use Unit => Unit instead of () => Unit. Any takers, or I'll fix it later this week.
trait Worker extends Subscription {
private [scala] val asJavaWorker: rx.Scheduler.Worker
/**
* Schedules a cancelable action to be executed in delayTime.
*/
def schedule(action: Unit => Unit, delayTime: Duration): Subscription =
this.asJavaWorker.schedule(
new Action0 {
override def call(): Unit = action()
},
delayTime.length,
delayTime.unit)
/**
* Schedules a cancelable action to be executed immediately.
*/
def schedule(action: Unit => Unit): Subscription = this.asJavaWorker.schedule(
new Action0 {
override def call(): Unit = action()
}
)
Metadata
Metadata
Assignees
Labels
No labels