stop

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package stop is a means of stopping many tasks in bulk.

Find main reference documentation at https://godoc.org/github.com/brad-jones/goasync

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(stopables ...Stopable)

func AllAsync

func AllAsync(stopables ...Stopable) *task.Task

func AllWithTimeout

func AllWithTimeout(timeout time.Duration, stopables ...StopableWithTimeout)

func AllWithTimeoutAsync

func AllWithTimeoutAsync(timeout time.Duration, stopables ...StopableWithTimeout) *task.Task

Types

type Stopable

type Stopable interface {
	Stop()
}

type StopableWithTimeout

type StopableWithTimeout interface {
	StopWithTimeout(timeout time.Duration) error
}

Jump to

Keyboard shortcuts

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