handler

package
v0.0.0-...-cb3607a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

this is a "simple" abstraction making it easy to handle arbitrary functions concurrently.

I really wish i could make this simpler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandlerFunc

type ErrorHandlerFunc func(error)

type Handler

type Handler interface {
	Start() error
	Stop() error
	Running() bool
}

func New

if a concurrent handler errors, it is expected to end, using (*handler).Start() to start it again. problems will arrise if you do not ensure this.

type HandlerFunc

type HandlerFunc func(chan struct{}, chan error)

Jump to

Keyboard shortcuts

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