Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created May 10, 2020 20:18
Show Gist options
  • Save jchapuis/fe2aee505c7d5fcd42f949f13cb78977 to your computer and use it in GitHub Desktop.
Save jchapuis/fe2aee505c7d5fcd42f949f13cb78977 to your computer and use it in GitHub Desktop.
Markdium-Orchestrating startup and shutdown in Scala
Service
.withName("in-memory-cache")
.withFallibleStarter{ () => cache.loadAsync() : Future[Either[StartError, Unit]] }
.build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment