Emil Kantis
test("client-server test") { listOf( async { client.sendRequest() } async { val req = server.takeRequest() req.path shouldBe "/api/v1/hello" } ).joinAll() }
Richard Gomez
coroutineScope
.await()
launch
test("client-server test") { coroutineScope { launch { client.sendRequest() } launch { val req = server.takeRequest() req.path shouldBe "/api/v1/hello" } } }
sendRequest()
takeRequest()
A modern programming language that makes developers happier.