Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mplatvoet on github.
  • I am mplatvoet (https://keybase.io/mplatvoet) on keybase.
  • I have a public key whose fingerprint is 9A6D C0FD B472 1A3C D3CB B4F1 7612 8D71 6325 C5DD

To claim this, I am signing this object:

@mplatvoet
mplatvoet / gist:bd029656bd17412f02cd
Last active February 18, 2017 13:56
CompletableFuture with Kovenant Promises example
import nl.komponents.kovenant.*
import nl.komponents.kovenant.jvm.asDispatcher
import java.util.concurrent.CompletableFuture
import java.util.concurrent.ForkJoinPool
fun main(args: Array<String>) {
Kovenant.context {
// configure Kovenant with the same pool
// CompletableFutures use. By default it's
// the common pool.