package taskloop

Import Path
	github.com/pion/ice/v4/internal/taskloop (on go.dev)

Dependency Relation
	imports 4 packages, and imported by one package

Involved Source Files Package taskloop implements a task loop to run tasks sequentially in a separate Goroutine.
Package-Level Type Names (only one)
/* sort by: | */
Loop runs submitted task serially in a dedicated Goroutine. Close stops the loop after finishing the execution of the current task. Other pending tasks will not be executed. Deadline returns the no valid time as task loops have no deadline. Done returns a channel that's closed when the task loop has been stopped. Err returns nil if the task loop is still running. Otherwise it return errClosed if the loop has been closed/stopped. Run serially executes the submitted callback. Blocking tasks must be cancelable by context. Value is not supported for task loops. *Loop : context.Context func New(onClose func()) *Loop
Package-Level Functions (only one)
New creates and starts a new task loop.
Package-Level Variables (only one)
ErrClosed indicates that the loop has been stopped.