You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Part 2 - Sequence Basics/1. Creating a sequence.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,6 +276,12 @@ Completed
276
276
277
277
The observable emits the result of the `FutureTask` when it is available and then terminates. If the task is canceled, the observable will emit a `java.util.concurrent.CancellationException` error.
278
278
279
+
If you're interested in the results of the `Future` for a limited amount of time, you can provide a timeout period like this
If the `Future` has not completed the specified amount of time, the observable will ignore it and fail with a `TimeoutException`.
284
+
279
285
You can also turn any collection into an observable using the overloads of `Observable.from` that take arrays and iterables. This will result in every item in the collection to be emitted and then the observable will terminate.
0 commit comments