async

package
v0.1.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package async defines the canonical descriptor for generated asynchronous method execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncExecuteHandler

func AsyncExecuteHandler(
	_ context.Context,
	invocation sdk.Invocation,
) (sdk.Result, error)

AsyncExecuteHandler contributes generated asynchronous execution semantics.

func Execute

func Execute() sdk.Definition

Execute marks a provider-owned method for generated asynchronous execution.

Spice validates the exact receiver, context, request, and error signature. Generated code owns cancellation, panic containment, bounded execution, and observability; the annotation never creates a hidden global worker pool.

// @import { Execute } from "github.com/spice-framework/spice/annotation/async"
// @Execute
func (*Mailer) Deliver(context.Context, Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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