July 2018
Intermediate to advanced
266 pages
7h 11m
English
There are a number of text conventions used throughout this book.
CodeInText: Indicates the name of variables, functions, classes, packages, files, and URLs. Here is an example: "The hcf() function will freeze the system."
A block of code is set as follows:
fun main(args: Array<String>) = runBlocking { val time = measureTimeMillis { val name = async { getName() } val lastName = async { getLastName() } println("Hello, ${name.await()} ${lastName.await()}") } println("Execution took $time ms")}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
fun main(args: Array<String>) = runBlocking { val netDispatcher = newSingleThreadContext(name = "ServiceCall")
Read now
Unlock full access