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

libretto.examples.libraryOfAlexandria.ConnectorModule.scala Maven / Gradle / Ivy

The newest version!
package libretto.examples.libraryOfAlexandria

import libretto.scaletto.StarterKit.*
import libretto.stream.scaletto.DefaultStreams.*

import vendor.{Page, ScrollId}

trait ConnectorModule {
  type Connector

  given shareableConnector: CloseableCosemigroup[Connector]

  def closeConnector: Connector -⚬ Done

  def fetchScroll: (Connector |*| Val[ScrollId]) -⚬ ValSource[Page]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy