Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Make ¶
func Make(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
Make creates a new group instance. Accepts the following optional kwargs: "n", "every", "burst".
An application can add 'group' to the Starlark envrionment like so:
globals := starlark.StringDict{ "group": starlark.NewBuiltin("group", starlarkgroup.Make), }
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group implements errgroup.Group in starlark with additional rate limiting. Arguments to go call are frozen. Wait returns a sorted tuple in order of calling. Calls are lazy evaluated and only executed when waiting.
Click to show internal directories.
Click to hide internal directories.