These are chat archives for akkadotnet/AkkaStreams

1st
Jun 2016
Marc Piechura
@marcpiechura
Jun 01 2016 09:14
@cconstantin saw Viktors comment on the reactive streams PR, I'm currently working on the TCK
Chris Constantin
@cconstantin
Jun 01 2016 14:13
thanks @Silv3rcircl3, yeah, getting some push-back there, I’ll work on the readme then
Chris Constantin
@cconstantin
Jun 01 2016 15:00
The pushback was with good reason, I rushed into releasing 1.0
can we express Subscriber<? super T> in .NET?
Bartosz Sypytkowski
@Horusiath
Jun 01 2016 15:01
4 contibutors for 3 lines of code?? xD
Chris Constantin
@cconstantin
Jun 01 2016 15:01
:)
Bartosz Sypytkowski
@Horusiath
Jun 01 2016 15:03
interface IPublisher<T1> {
     void Subscribe<T2>(Subscriber<T2> s) where T2 : T1
}
or easier:
interface IPublisher<out T1> {
     void Subscribe(Subscriber<T1> s)
}
;)
Chris Constantin
@cconstantin
Jun 01 2016 15:04
This doesn’t work void Subscribe<U>(ISubscriber<U> subscriber) where T : U;
@Horusiath it’s the other way around, T1 has to inherit from T2
I guess the second option is somewhat equivalent
or is it T2 inherit from T1 … grrr
Bartosz Sypytkowski
@Horusiath
Jun 01 2016 15:08
In Java:
List<? extends Object> covariantList = aList;
List<? super String> contravariantList = aList;
Chris Constantin
@cconstantin
Jun 01 2016 15:09
you’re right, second option does it, which is what you’ve done in the first place
never mind, coffee hasn’t kicked in yet :|