@@ -57,7 +57,7 @@ trait Scheduler {
57
57
* @param delayTime Time the action is to be delayed before executing.
58
58
* @return a subscription to be able to unsubscribe from action.
59
59
*/
60
- def schedule (delayTime : Duration )( action : Scheduler => Subscription ): Subscription = {
60
+ def schedule (delayTime : Duration , action : Scheduler => Subscription ): Subscription = {
61
61
this .schedule[Integer ](0 , (s : Scheduler , x : Integer ) => action(s), delayTime : Duration ): Subscription
62
62
}
63
63
@@ -86,7 +86,7 @@ trait Scheduler {
86
86
* @param period The time interval to wait each time in between executing the action.
87
87
* @return A subscription to be able to unsubscribe from action.
88
88
*/
89
- def schedule (initialDelay : Duration , period : Duration )( action : Scheduler => Subscription ): Subscription = {
89
+ def schedule (initialDelay : Duration , period : Duration , action : Scheduler => Subscription ): Subscription = {
90
90
this .schedulePeriodically[Integer ](0 , (s : Scheduler , x: Integer ) => action(s): Subscription , initialDelay : Duration , period : Duration ): Subscription
91
91
}
92
92
@@ -116,7 +116,7 @@ trait Scheduler {
116
116
* @param dueTime Time the action is to be executed. If in the past it will be executed immediately.
117
117
* @return a subscription to be able to unsubscribe from action.
118
118
*/
119
- def schedule (dueTime : Date )( action : Scheduler => Subscription ): Subscription = {
119
+ def schedule (dueTime : Date , action : Scheduler => Subscription ): Subscription = {
120
120
this .schedule(0 : Integer , (s : Scheduler , x : Integer ) => action(s): Subscription , dueTime : Date ): Subscription
121
121
}
122
122
@@ -152,7 +152,7 @@ trait Scheduler {
152
152
* @param action action
153
153
* @return a subscription to be able to unsubscribe from action.
154
154
*/
155
- def schedule (delayTime : Duration )( action : => Unit ): Subscription = {
155
+ def schedule (delayTime : Duration , action : => Unit ): Subscription = {
156
156
Subscription (asJavaScheduler.schedule(()=> action, delayTime.length, delayTime.unit))
157
157
}
158
158
@@ -167,7 +167,7 @@ trait Scheduler {
167
167
* The time interval to wait each time in between executing the action.
168
168
* @return A subscription to be able to unsubscribe from action.
169
169
*/
170
- def schedule (initialDelay : Duration , period : Duration )( action : => Unit ): Subscription = {
170
+ def schedule (initialDelay : Duration , period : Duration , action : => Unit ): Subscription = {
171
171
Subscription (asJavaScheduler.schedulePeriodically(()=> action, initialDelay.length, initialDelay.unit.convert(period.length, period.unit), initialDelay.unit))
172
172
}
173
173
0 commit comments