task

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Debug

type Debug struct{}

func (*Debug) Lock

func (m *Debug) Lock(ctx context.Context, _ string) context.Context

Get the locker of the scheduler, should be blocked before acquired the locker.

func (*Debug) Unlock

func (m *Debug) Unlock(_ string)

Give up the schedule locker.

type Task

type Task struct{}

func (*Task) Schedule

func (c *Task) Schedule(spec string, exec task.Executor, opts ...task.Option) error

Jump to

Keyboard shortcuts

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