inline

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package inline is the sync job driver for tests and local development. It stores jobs in a bounded process-local memory authority, and its dispatcher runs each accepted job synchronously in the dispatching caller with the same admission, middleware, overlap, retry and history semantics as a worker.

It is not durable: accepted work lives only in this process. A job released with a delay (admission, rate limits, retry backoff) runs on a later dispatch to the same dispatcher or an explicit Dispatcher.RunPending once due. Handler failures are recorded on the job, never returned from Dispatch. A dispatch made by a running handler executes after that handler returns, before the outer dispatch returns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	*memory.Backend
}

Backend is a memory authority that asks its dispatcher to execute inline.

func New

func New(config memory.Config) (*Backend, error)

New constructs a bounded local authority whose dispatcher executes accepted jobs synchronously.

func (*Backend) JobInline

func (*Backend) JobInline() bool

JobInline marks this authority as the sync driver.

Jump to

Keyboard shortcuts

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