Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComfyWorker ¶
type ComfyWorker struct {
// contains filtered or unexported fields
}
func (ComfyWorker) BlockUntilReady ¶
func (w ComfyWorker) BlockUntilReady()
BlockUntilReady is called before each job is processed and must block the calling goroutine until the Worker is ready to process the next job.
func (ComfyWorker) Interrupt ¶
func (w ComfyWorker) Interrupt()
Interrupt is called when a job is cancelled. The worker is responsible for unblocking the Process implementation.
func (ComfyWorker) Process ¶
func (w ComfyWorker) Process(payload interface{}) interface{}
func (ComfyWorker) Terminate ¶
func (w ComfyWorker) Terminate()
Terminate is called when a Worker is removed from the processing pool and is responsible for cleaning up any held resources.
Click to show internal directories.
Click to hide internal directories.