worker

package
v0.0.0-...-b2a0db9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package worker provides a very simple mechanism to allow telemetry packages to work cooperatively and efficiently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(task func())

Do adds a task to the list of things to work on in the background. All tasks will be handled in submission order, and no two tasks will happen concurrently so they do not need to do any kind of locking. It is safe however to call Do concurrently. No promises are made about when the tasks will be performed. This function may block, but in general it will return very quickly and before the task has been run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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