Skip to content

Commit d76e5e4

Browse files
committed
allow contravariant use of Subscriber
fixes reactive-streams#104
1 parent 9e62ca4 commit d76e5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/reactivestreams/Publisher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ public interface Publisher<T> {
1616
*
1717
* @param s the {@link Subscriber} that will consume signals from this {@link Publisher}
1818
*/
19-
public void subscribe(Subscriber<T> s);
19+
public void subscribe(Subscriber<? super T> s);
2020
}

0 commit comments

Comments
 (0)