Skip to content

Commit 2e07b63

Browse files
committed
Update javadocs on JavaFxSubscriber
1 parent 01f2466 commit 2e07b63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/rx/subscribers/JavaFxSubscriber.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@
2222

2323
public enum JavaFxSubscriber {
2424
;//no instances
25-
25+
/**
26+
* Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
27+
*/
2628
public static <T> Binding<T> toBinding(Observable<T> obs) {
2729
BindingSubscriber<T> bindingSubscriber = new BindingSubscriber<>(e -> {});
2830
obs.subscribe(bindingSubscriber);
2931
return bindingSubscriber;
3032
}
33+
/**
34+
* Turns an Observable into a JavaFX Binding. Calling the dispose() method will handle the unsubscription.
35+
*/
3136
public static <T> Binding<T> toBinding(Observable<T> obs, Action1<Throwable> onErrorAction ) {
3237
BindingSubscriber<T> bindingSubscriber = new BindingSubscriber<>(onErrorAction);
3338
obs.subscribe(bindingSubscriber);

0 commit comments

Comments
 (0)