Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ThreadContextKey is the name of the Starlark thread-local that we use to // pass context around. ThreadContextKey = "tidbyt.dev/pixlet/starlarkutil/$ctx" )
View Source
const ( // ThreadOnExitKey is the key used to store functions that should be called // when a thread exits. ThreadOnExitKey = "tidbyt.dev/pixlet/runtime/on_exit" )
Variables ¶
This section is empty.
Functions ¶
func AttachThreadContext ¶
AttachThreadContext attaches context to a Starlark thread so that it can be retrieved latter with `ThreadContext`.
func RunOnExitFuncs ¶ added in v0.32.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.