Last active
July 16, 2018 04:58
-
-
Save xerial/00bca182fa0137a8c55490aa860fd793 to your computer and use it in GitHub Desktop.
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
import wvlet.airframe._ | |
trait MyApp { | |
private val threadPool = bind[ThreadPool] | |
private val dbService = bind[DbService] | |
... | |
threadPool.submit(dbService.query("select ...")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment