Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("the script ran past its time limit and was stopped; tool calls in flight were cancelled; pass a larger timeoutMs or split the work")
Functions ¶
This section is empty.
Types ¶
type ExecutingTask ¶
type WaitingTask ¶
type WaitingTask interface {
Name() string
Memory() int
Done() <-chan struct{}
Reject(err error)
Execute(interrupt func()) (ExecutingTask, bool)
}
func NewTask ¶
func NewTask(params Params, done func(), asyncAfter time.Duration) (WaitingTask, <-chan Result, context.CancelCauseFunc)
Click to show internal directories.
Click to hide internal directories.