All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gopher.impl.MappedChannel.scala Maven / Gradle / Ivy

package gopher.impl

import gopher._

class MappedChannel[F[_],W,RA,RB](internal: Channel[F,W,RA], f: RA=>RB) extends MappedReadChannel[F,RA,RB](internal, f)
                                                                             with Channel[F,W,RB]:

  override def addWriter(writer: Writer[W]): Unit =
    internal.addWriter(writer)

  override def close(): Unit =
    internal.close()

  override def isClosed: Boolean =
    internal.isClosed


class MappedAsyncChannel[F[_],W,RA,RB](internal: Channel[F,W,RA], f: RA=>F[RB]) extends MappedAsyncReadChannel[F,RA,RB](internal, f)
                                                                             with Channel[F,W,RB]:

  override def addWriter(writer: Writer[W]): Unit =
    internal.addWriter(writer)

  override def close(): Unit =
    internal.close()

  override def isClosed: Boolean =
    internal.isClosed




© 2015 - 2025 Weber Informatics LLC | Privacy Policy