contextΒΆ
type context < function
A context key can be used to create context specific values. If
key
is a context key, then callingkey()
no arguments returns the value associated with the key in the current context, ornil
is no value is associated. Callingkey(Value, Function)
will invokeFunction
in a new context wherekey
is associated withValue
.fun context(): context
Creates a new context specific key.