Anthony Restaino
9 years ago
9 changed files with 117 additions and 14 deletions
@ -1,7 +1,25 @@
@@ -1,7 +1,25 @@
|
||||
package acr.browser.lightning.react; |
||||
|
||||
import android.support.annotation.Nullable; |
||||
|
||||
public interface Subscriber<T> { |
||||
void onNext(T item); |
||||
/** |
||||
* Called when the Observer emits an |
||||
* item. It can be called multiple times. |
||||
* It cannot be called after onComplete |
||||
* has been called. |
||||
* |
||||
* @param item the item that has been emitted, |
||||
* can be null. |
||||
*/ |
||||
void onNext(@Nullable T item); |
||||
|
||||
/** |
||||
* This method is called when the observer is |
||||
* finished sending the subscriber events. It |
||||
* is guaranteed that no other methods will be |
||||
* called on the Subscription after this method |
||||
* has been called. |
||||
*/ |
||||
void onComplete(); |
||||
} |
||||
|
@ -1,7 +1,26 @@
@@ -1,7 +1,26 @@
|
||||
package acr.browser.lightning.react; |
||||
|
||||
import android.support.annotation.Nullable; |
||||
|
||||
public interface Subscription<T> { |
||||
void onNext(T item); |
||||
|
||||
/** |
||||
* Called when the Observer emits an |
||||
* item. It can be called multiple times. |
||||
* It cannot be called after onComplete |
||||
* has been called. |
||||
* |
||||
* @param item the item that has been emitted, |
||||
* can be null. |
||||
*/ |
||||
void onNext(@Nullable T item); |
||||
|
||||
/** |
||||
* This method is called when the observer is |
||||
* finished sending the subscriber events. It |
||||
* is guaranteed that no other methods will be |
||||
* called on the Subscription after this method |
||||
* has been called. |
||||
*/ |
||||
void onComplete(); |
||||
} |
||||
|
Loading…
Reference in new issue