15
15
*/
16
16
package rx .util .async ;
17
17
18
- import java .util .concurrent .Callable ;
19
- import java .util .concurrent .Future ;
20
- import java .util .concurrent .FutureTask ;
21
-
22
- import rx .Observable ;
23
- import rx .Observer ;
24
- import rx .Scheduler ;
18
+ import rx .*;
25
19
import rx .Scheduler .Worker ;
26
- import rx .Subscriber ;
27
- import rx .Subscription ;
28
- import rx .functions .Action0 ;
29
- import rx .functions .Action1 ;
30
- import rx .functions .Action2 ;
31
- import rx .functions .Action3 ;
32
- import rx .functions .Action4 ;
33
- import rx .functions .Action5 ;
34
- import rx .functions .Action6 ;
35
- import rx .functions .Action7 ;
36
- import rx .functions .Action8 ;
37
- import rx .functions .Action9 ;
38
- import rx .functions .ActionN ;
39
- import rx .functions .Actions ;
40
- import rx .functions .Func0 ;
41
- import rx .functions .Func1 ;
42
- import rx .functions .Func2 ;
43
- import rx .functions .Func3 ;
44
- import rx .functions .Func4 ;
45
- import rx .functions .Func5 ;
46
- import rx .functions .Func6 ;
47
- import rx .functions .Func7 ;
48
- import rx .functions .Func8 ;
49
- import rx .functions .Func9 ;
50
- import rx .functions .FuncN ;
20
+ import rx .functions .*;
51
21
import rx .schedulers .Schedulers ;
52
22
import rx .subjects .AsyncSubject ;
53
23
import rx .subjects .PublishSubject ;
54
24
import rx .subjects .Subject ;
55
25
import rx .subscriptions .SerialSubscription ;
56
- import rx .util .async .operators .Functionals ;
57
- import rx . util . async . operators . OperatorDeferFuture ;
58
- import rx .util .async . operators . OperatorForEachFuture ;
59
- import rx .util .async . operators . OperatorFromFunctionals ;
60
- import rx .util .async . operators . OperatorStartFuture ;
26
+ import rx .util .async .operators .* ;
27
+
28
+ import java .util .concurrent . Callable ;
29
+ import java .util .concurrent . Future ;
30
+ import java .util .concurrent . FutureTask ;
61
31
62
32
/**
63
33
* Utility methods to convert functions and actions into asynchronous operations through the Observable/Observer
@@ -95,7 +65,7 @@ public static <T> Observable<T> start(Func0<T> func) {
95
65
* Observable. Multiple subscriptions to this Observable observe the same return value.
96
66
* <p>
97
67
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/start.s.png">
98
- *
68
+ * <p>
99
69
* @param <T> the result value type
100
70
* @param func function to run asynchronously
101
71
* @param scheduler Scheduler to run the function on
@@ -111,7 +81,7 @@ public static <T> Observable<T> start(Func0<T> func, Scheduler scheduler) {
111
81
* Convert a synchronous action call into an asynchronous function call through an Observable.
112
82
* <p>
113
83
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toAsync.an.png">
114
- *
84
+ * <p>
115
85
* @param action the action to convert
116
86
* @return a function that returns an Observable that executes the {@code action} and emits {@code null}
117
87
* @see <a href="https://github.com/Netflix/RxJava/wiki/Async-Operators#wiki-toasync-or-asyncaction-or-asyncfunc">RxJava Wiki: toAsync()</a>
0 commit comments