Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
func FromContext ¶
FromContext returns the pool assigned to the context.
func (*Pool) Deallocate ¶
Deallocate removes the worker from the pool of available workers. If the worker is currently reserved and performing work it will finish, but no longer be given new work.
func (*Pool) IsAllocated ¶
IsAllocated is a helper function that returns true if the worker is currently allocated to the Pool.
Click to show internal directories.
Click to hide internal directories.