finite-tasks

command module
v0.0.0-...-b0500b1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

README

finite-tasks

This example starts a number of tasks (defaults to 5) in a loop. Each task has a finite duration and completes. When the final task completes, the open nursery closes and the program exits.

Each task sleeps for a given number of seconds, so they complete in reverse order. Tasks are also context-aware so if any are canceled early, they will all exit.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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