runtime

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package runtime provides the concrete Factory implementation that wires together the engine, workers, and subsystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...factory.FactoryOption) (factory.Factory, error)

New constructs a Factory from functional options. It wires the engine, worker pool, and subsystems together. Returns an error if required options (WithNet) are missing.

Types

type TickableFactory

type TickableFactory interface {
	factory.Factory
	Tick(ctx context.Context) error
	TickN(ctx context.Context, n int) error
	TickUntil(ctx context.Context, pred func(*petri.MarkingSnapshot) bool, maxTicks int) error
}

TickableFactory extends Factory with synchronous tick control. Used by the test harness to drive the engine step-by-step without starting the async Run loop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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