contexts

package module
v0.0.0-...-5d5eeb8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package contexts is a package that contains examples of how to use context. This is named context(s) so that it doesn't collide with the standard library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinishTaskBeforeContextTimeout

func FinishTaskBeforeContextTimeout(duration time.Duration)

FinishTaskBeforeContextTimeout is an example of how to use context with timeout that should complete before the timeout.

func TimeoutContextBeforeTaskIsFinished

func TimeoutContextBeforeTaskIsFinished(duration time.Duration)

TimeoutContextBeforeTaskIsFinished is an example of how to use context to cancel a task before it finishes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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