longpoll

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("Cancelled")

Functions

This section is empty.

Types

type PollableActionService

type PollableActionService struct {
	// contains filtered or unexported fields
}

func New

func New(redis *redis.Client, key string) *PollableActionService

func (*PollableActionService) Push

func (pa *PollableActionService) Push(ctx context.Context, runnerId string, data any) error

func (*PollableActionService) Wait

func (pa *PollableActionService) Wait(ctx context.Context, runnerId string) (string, error)

Jump to

Keyboard shortcuts

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