threadcontext

package
v1.234.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package threadcontext shares the calling task's cancellation context between the automation runtime and its standard-library bindings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(thread *starlark.Thread) context.Context

Get returns the calling task's context. Standalone bindings without a host context use Background, like an ordinary Starlark thread.

func Set

func Set(ctx context.Context, thread *starlark.Thread)

Set attaches the invocation or parallel task context before evaluation starts.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL