Version 3.0.3 is behind the current release: jump to latest version (3.1.0).
interface Context
thefrontside/effectioninterface Context<T> extends Operation<T>
`Context`` defines a value which is in effect for a given scope which is an (action, resource, call, or spawn).
When used as an operation, it gets the value of the Context from
the current scope. If it has not been set, and there is no default
value, then a MissingContextError
will be raised.
Unless a context value is defined for a particular scope, it will inherit its value from its parent scope.
Type Parameters
T
Properties
- key: string
A unique identifier for this context.
- defaultValue: T
The value of the context if has not been defined for the current operation.