Documentation ¶
Index ¶
- Constants
- Variables
- func Coalesce(ctx context.Context, handles ...*Future) chan CoalescedResult
- func Lock(topCtx context.Context) async.Manifest
- func NewFailureMessage(id, handleID xid.ID, err error) message.Message
- func NewProgressMessage(id, handleID xid.ID, current, max int) message.Message
- func NewScheduleMessage(id xid.ID, args any) message.Message
- func NewScheduledMessage(name string, id, parentID xid.ID) message.Message
- func NewSuccessMessage(id, handleID xid.ID) message.Message
- func ParentID(ctx context.Context) xid.ID
- type CoalescedResult
- type Context
- type FailureMessagePayload
- type Future
- type Hooks
- type Pipeline
- type ProgressMessagePayload
- type ScheduleMessagePayload
- type ScheduledMessagePayload
- type Scheduler
- type SuccessMessagePayload
Constants ¶
View Source
const ( MSchedule = "wk.scheduler.schedule" MScheduled = "wk.scheduler#scheduled" MProgress = "wk.scheduler#progress" MSuccess = "wk.scheduler#success" MFailure = "wk.scheduler#failure" )
scheduler specifics
Variables ¶
View Source
var (
ENoMoreRetry = errors.PersistentCode(errors.DResource, errors.ATooBig)
)
Functions ¶
func NewProgressMessage ¶
func NewScheduledMessage ¶
Types ¶
type Context ¶
type Context struct { context.Context Cancel context.CancelFunc Scheduler *Scheduler Parent xid.ID }
func (*Context) BindScheduler ¶
type FailureMessagePayload ¶
type Future ¶ added in v0.1.3
type Future struct { *Context ID xid.ID ManifestID xid.ID // contains filtered or unexported fields }
type Pipeline ¶
func MakePipeline ¶
type ProgressMessagePayload ¶
type ScheduleMessagePayload ¶
type ScheduledMessagePayload ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.