stop

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(stopables ...*task.Task)

All will loop through all provided objects and call their Stop method.

func AllAsync

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

AllAsync does exactly the same thing as All but does so asynchronously.

func AllWithTimeout

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

AllWithTimeout all provided objects and call their StopWithTimeout method with the given timeout value.

func AllWithTimeoutAsync

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

AllWithTimeoutAsync does exactly the same thing as AllWithTimeout but does so asynchronously.

Types

This section is empty.

Jump to

Keyboard shortcuts

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