temporalmock

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFuture

func NewFuture[T any](data T, ready bool) temporal.Future[T]

Types

type Future

type Future[T any] struct {
	Result T
	Ready  bool
}

func (Future[T]) Get

func (f Future[T]) Get(ctx workflow.Context) (res T, err error)

func (Future[T]) IsReady

func (f Future[T]) IsReady() bool

func (Future[T]) Select

func (f Future[T]) Select(selector workflow.Selector, f2 temporal.FutureCallback[T]) workflow.Selector

func (Future[T]) Underlying

func (f Future[T]) Underlying() workflow.Future

Jump to

Keyboard shortcuts

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