task

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task interface {
	Run(group TaskGroup) error
}

type TaskFn

type TaskFn = func(TaskGroup) error

type TaskGroup

type TaskGroup interface {
	Ctx() context.Context
	Cancel()
	Go(Task)
	GoFn(TaskFn)
}

type TaskManager

type TaskManager interface {
	TaskGroup

	Wait() error
}

func NewTaskManager

func NewTaskManager(ctx context.Context) TaskManager

Jump to

Keyboard shortcuts

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