Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concurrent ¶
type Concurrent struct {
// contains filtered or unexported fields
}
func NewConcurrent ¶
func NewConcurrent(ctx context.Context) (*Concurrent, context.Context)
func (*Concurrent) Spawn ¶
func (c *Concurrent) Spawn(fn func() error)
func (*Concurrent) SpawnAndWait ¶
func (*Concurrent) SpawnContext ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) JobQueueSize ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
func (*Semaphore) SpawnContext ¶
type TaskHandle ¶
type TaskHandle struct {
// contains filtered or unexported fields
}
func (*TaskHandle) Cancel ¶
func (t *TaskHandle) Cancel()
func (*TaskHandle) Wait ¶
func (t *TaskHandle) Wait() error
func (*TaskHandle) WaitTimeout ¶
func (t *TaskHandle) WaitTimeout(timeout time.Duration) error
Click to show internal directories.
Click to hide internal directories.