type context < function

A context key can be used to create context specific values. If key is a context key, then calling key() no arguments returns the value associated with the key in the current context, or nil is no value is associated. Calling key(Value, Function) will invoke Function in a new context where key is associated with Value.

fun context(): context

Creates a new context specific key.