Skip to content

Instantly share code, notes, and snippets.

View fabienmoritz's full-sized avatar

Fabien Moritz fabienmoritz

  • Toulouse, France
View GitHub Profile
@fabienmoritz
fabienmoritz / Main.kt
Created August 23, 2017 10:15
easy coroutines with Jooby
import kotlinx.coroutines.experimental.CommonPool
import kotlinx.coroutines.experimental.delay
import kotlinx.coroutines.experimental.future.future
import org.jooby.AsyncMapper
import org.jooby.run
import java.util.concurrent.TimeUnit
fun main(args:Array<String>) {
run(*args) {