Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Canceled = errors.New("Canceled")
Canceled is returned on CompletionFuture.AwaitCompletion when a CompletionFuture was canceled
Functions ¶
This section is empty.
Types ¶
type CompletionFuture ¶
type Executor ¶
type Executor interface { io.Closer Start() Stop() Submit(ctx context.Context, workItemId int32, runnable Runnable) CompletionFuture IsRunning() bool }
func NewDynamicExecutor ¶
func NewDynamicExecutor(maxNumberOfWorkers, queueDepth int, _options ...options.WithOption) Executor
func NewFixedSizeExecutor ¶
func NewFixedSizeExecutor(numberOfWorkers, queueDepth int, _options ...options.WithOption) Executor
Click to show internal directories.
Click to hide internal directories.