I have seen this kind of code many times before, most recently at scala-user mailing list:
context(GUI) { implicit ec =>
// some code
}
context
is defined as:
def context[T](ec: ExecutionContext)(block: ExecutionContext => T): Unit = {
ec execute {
block(ec)
}
}
What purpose does the keeyword implicit
achieve when placed in front of a lambda expression parameter?