routines

package
v0.0.0-...-187538d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package routines implements the routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abortable

type Abortable struct {
	// contains filtered or unexported fields
}

Abortable represents metadata about a routine that can be aborted.

func NewAbortable

func NewAbortable() *Abortable

NewAbortable creates a new abortable.

func (*Abortable) Abort

func (a *Abortable) Abort(err error, message string)

Abort set as aborted.

func (*Abortable) GetError

func (a *Abortable) GetError() error

GetError returns the error.

func (*Abortable) GetMessage

func (a *Abortable) GetMessage() string

GetMessage returns the message.

func (*Abortable) IsAborted

func (a *Abortable) IsAborted() bool

IsAborted returns true if the routine has been aborted.

Jump to

Keyboard shortcuts

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