@@ -151,39 +151,6 @@ public <T> Subscription schedule(T state, Func2<Scheduler, T, Subscription> acti
151
151
}
152
152
}
153
153
154
- /**
155
- * Schedules a cancelable action to be executed.
156
- *
157
- * @param action
158
- * Action to schedule.
159
- * @return a subscription to be able to unsubscribe from action.
160
- */
161
- public Subscription schedule (final Func1 <Scheduler , Subscription > action ) {
162
- return schedule (null , new Func2 <Scheduler , Void , Subscription >() {
163
-
164
- @ Override
165
- public Subscription call (Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
166
- return action .call (scheduler );
167
- }
168
- });
169
- }
170
-
171
- /**
172
- * Schedules a cancelable action to be executed.
173
- *
174
- * @param action
175
- * action
176
- * @return a subscription to be able to unsubscribe from action.
177
- */
178
- public Subscription schedule (final Func0 <Subscription > action ) {
179
- return schedule (null , new Func2 <Scheduler , Void , Subscription >() {
180
-
181
- @ Override
182
- public Subscription call (@ SuppressWarnings ("unused" ) Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
183
- return action .call ();
184
- }
185
- });
186
- }
187
154
188
155
/**
189
156
* Schedules an action to be executed.
@@ -203,27 +170,6 @@ public Subscription call(@SuppressWarnings("unused") Scheduler scheduler, @Suppr
203
170
});
204
171
}
205
172
206
- /**
207
- * Schedules a cancelable action to be executed in delayTime.
208
- *
209
- * @param action
210
- * Action to schedule.
211
- * @param delayTime
212
- * Time the action is to be delayed before executing.
213
- * @param unit
214
- * Time unit of the delay time.
215
- * @return a subscription to be able to unsubscribe from action.
216
- */
217
- public Subscription schedule (final Func1 <Scheduler , Subscription > action , long delayTime , TimeUnit unit ) {
218
- return schedule (null , new Func2 <Scheduler , Void , Subscription >() {
219
-
220
- @ Override
221
- public Subscription call (Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
222
- return action .call (scheduler );
223
- }
224
- }, delayTime , unit );
225
- }
226
-
227
173
/**
228
174
* Schedules an action to be executed in delayTime.
229
175
*
@@ -242,66 +188,6 @@ public Subscription call(@SuppressWarnings("unused") Scheduler scheduler, @Suppr
242
188
}, delayTime , unit );
243
189
}
244
190
245
- /**
246
- * Schedules a cancelable action to be executed in delayTime.
247
- *
248
- * @param action
249
- * action
250
- * @return a subscription to be able to unsubscribe from action.
251
- */
252
- public Subscription schedule (final Func0 <Subscription > action , long delayTime , TimeUnit unit ) {
253
- return schedule (null , new Func2 <Scheduler , Void , Subscription >() {
254
-
255
- @ Override
256
- public Subscription call (@ SuppressWarnings ("unused" ) Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
257
- return action .call ();
258
- }
259
- }, delayTime , unit );
260
- }
261
-
262
- /**
263
- * Schedules a cancelable action to be executed periodically.
264
- *
265
- * @param action
266
- * The action to execute periodically.
267
- * @param initialDelay
268
- * Time to wait before executing the action for the first time.
269
- * @param period
270
- * The time interval to wait each time in between executing the action.
271
- * @param unit
272
- * The time unit the interval above is given in.
273
- * @return A subscription to be able to unsubscribe from action.
274
- */
275
- public Subscription schedulePeriodically (final Func1 <Scheduler , Subscription > action , long initialDelay , long period , TimeUnit unit ) {
276
- return schedulePeriodically (null , new Func2 <Scheduler , Void , Subscription >() {
277
- @ Override
278
- public Subscription call (Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
279
- return action .call (scheduler );
280
- }
281
- }, initialDelay , period , unit );
282
- }
283
-
284
- /**
285
- * Schedules a cancelable action to be executed periodically.
286
- *
287
- * @param action
288
- * The action to execute periodically.
289
- * @param initialDelay
290
- * Time to wait before executing the action for the first time.
291
- * @param period
292
- * The time interval to wait each time in between executing the action.
293
- * @param unit
294
- * The time unit the interval above is given in.
295
- * @return A subscription to be able to unsubscribe from action.
296
- */
297
- public Subscription schedulePeriodically (final Func0 <Subscription > action , long initialDelay , long period , TimeUnit unit ) {
298
- return schedulePeriodically (null , new Func2 <Scheduler , Void , Subscription >() {
299
- @ Override
300
- public Subscription call (@ SuppressWarnings ("unused" ) Scheduler scheduler , @ SuppressWarnings ("unused" ) Void state ) {
301
- return action .call ();
302
- }
303
- }, initialDelay , period , unit );
304
- }
305
191
306
192
/**
307
193
* Schedules an action to be executed periodically.
0 commit comments