infinite-nursery

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: 7 Imported by: 0

README

infinite-nursery

This example mimics a typical server setup, which would have an infinite loop accepting new connections and handling them.

In this example, we simulate new connections with a loop of periodic ticks, each one kicking off a new Task that pauses (and yields) before completing. Graceful shutdown is also implemented as a Task, as is a monitor that prints the current number of live goroutines.

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