David Glasser
withContext
<http://log.info|log.info>("going to execute request $callsite") withContext(MyContextThingy()) { <http://log.info|log.info>("in first context") } <http://log.info|log.info>("back from context") val res: HttpResponse = withContext(MyContextThingy()) { <http://log.info|log.info>("top of context") val response: HttpResponse = httpClient.request { url.takeFrom(this@DruidClient.url) method = <http://HttpMethod.Post|HttpMethod.Post> contentType(ContentType.Application.Json) body = req } <http://log.info|log.info>("after request") response } <http://log.info|log.info>("after WC") res
after request
after WC
A modern programming language that makes developers happier.