starlarkthread

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &starlarkstruct.Module{
	Name: "thread",
	Members: starlark.StringDict{
		"sleep":  starlark.NewBuiltin("thread.sleep", sleep),
		"cancel": starlark.NewBuiltin("thread.cancel", cancel),
		"defer":  starlark.NewBuiltin("thread.defer", deferFunc),
		"name":   starlark.NewBuiltin("thread.name", name),
	},
}

Module thread is a Starlark module of thread-related functions and constants. The module defines the following functions:

sleep(millis) - Sleeps the current thread for the given number of milliseconds

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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