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)
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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |