Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created May 10, 2020 20:18
Show Gist options
  • Save jchapuis/67b57c9bb886f542bae40dda91b962c5 to your computer and use it in GitHub Desktop.
Save jchapuis/67b57c9bb886f542bae40dda91b962c5 to your computer and use it in GitHub Desktop.
Markdium-Orchestrating startup and shutdown in Scala
trait Service extends Stoppable[Either[E, Unit]] {
def start(): Future[E, Unit]
def name: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment