Documentation ¶
Overview ¶
Package taskqueue implements a callback queuer to be used with the event loop in k6
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task func() error
Task is just a representation of a task that will be added to the event loop
type TaskQueue ¶
type TaskQueue struct {
// contains filtered or unexported fields
}
TaskQueue makes it easy to queue multiple callback to the k6 event loop. This in particular works around the problem that in order to queue a callback you need to be on the event loop But if you already use the callback you need to wait for the queued callback to be executed to "reset" the callback while it's executing on the event loop
Click to show internal directories.
Click to hide internal directories.