Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created May 10, 2020 20:18
Show Gist options
  • Save jchapuis/e08e0e1d241e8ff54f40b6fa4cc8e716 to your computer and use it in GitHub Desktop.
Save jchapuis/e08e0e1d241e8ff54f40b6fa4cc8e716 to your computer and use it in GitHub Desktop.
Markdium-Orchestrating startup and shutdown in Scala
Service
.withName("safe")
.withStarter{ ()=> Future.successful(()) }
.withStopper{ ()=> Future.successful(()) }
.build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment