Convert a synchronous action call into an asynchronous function call through an Observable. @param action the action to convert @return a function that returns an Observable that ex
(Action0 action)
| 88 | * @see <a href="http://msdn.microsoft.com/en-us/library/hh229868.aspx">MSDN: Observable.ToAsync</a> |
| 89 | */ |
| 90 | public static Func0<Observable<Void>> toAsync(Action0 action) { |
| 91 | return toAsync(action, Schedulers.computation()); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Convert a synchronous function call into an asynchronous function call through an Observable. |
no outgoing calls