void

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVoidContainer

func NewVoidContainer(
	apps []VoidApp,
	opts ...VoidOption) scene.Scene

NewVoidContainer creates a container for background-style delivery apps. Void apps should start background work in Run and return quickly.

Types

type VoidApp

type VoidApp interface {
	scene.Application
	// Run starts the app's background behavior.
	// It should not block; long-running work should be started in background goroutines.
	Run() error
	// Stop asks the app to stop its background behavior.
	// Implementations should respect ctx cancellation when possible.
	Stop(ctx context.Context) error
}

type VoidOption

type VoidOption func()

Jump to

Keyboard shortcuts

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