krasserm / streamz

A combinator library for integrating Functional Streams for Scala (FS2), Akka Streams and Apache Camel
Apache License 2.0
282 stars 44 forks source link

Use <:<Notused instead of =:=NotUsed #83

Closed Daenyth closed 4 years ago

Daenyth commented 4 years ago

This is so that calling code that wishes to discard mat values can do .mapMaterializedValue(_ => NotUsed). Currently it must use .mapMaterializedValue(_ => NotUsed: NotUsed) because the former infers the type to be Source[A, NotUsed.type]