ctx

package
v0.0.0-...-7c31276 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	context.Context
	context.CancelFunc
}

func New

func New(c context.Context) *Ctx

New - Creates new context from a parent context

func (*Ctx) Interrupt

func (c *Ctx) Interrupt() error

Interrupt - Does the whole program process interuption, usefull for testing. Not so much useful otherwise for now.

func (*Ctx) Stop

func (c *Ctx) Stop()

Stop - Closes the context altogether

Jump to

Keyboard shortcuts

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