context

inline fun <T : Any> context(message: String = "Context "): T(source)

Gets context value associated with the type T in this scope, or fails with the given message.

Return

the context value

Since

0.1.0

Parameters

message

the messages given that no context value exists for the given type

T

the type of the context value