Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created May 10, 2020 19:38
Show Gist options
  • Save jchapuis/575f23635f11890a49eb47d6a2df8e41 to your computer and use it in GitHub Desktop.
Save jchapuis/575f23635f11890a49eb47d6a2df8e41 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