Last active
February 3, 2026 20:20
-
-
Save dacr/1804365dbdd4a6e43a22cade2530130e to your computer and use it in GitHub Desktop.
primes web service launcher script / published by https://github.com/dacr/code-examples-manager #ede12fe6-49e9-4d31-a970-5422458f1449/5277d675cfa890df77716ca9579b205b03b41319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // summary : primes web service launcher script | |
| // keywords : primes, webservice, launcher | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // id : ede12fe6-49e9-4d31-a970-5422458f1449 | |
| // created-on : 2021-03-03T12:51:43Z | |
| // managed-by : https://github.com/dacr/code-examples-manager | |
| // execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc' | |
| import $ivy.`fr.janalyse::primes-server-akkahttp:1.0.5` | |
| val service = primes.Main.start() | |
| service.waitSystemTerminate() // Just to avoid automatic exit in ammonite script mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment