MCPcopy Create free account
hub / github.com/pion/ice / Loop

Struct Loop

internal/taskloop/taskloop.go:25–32  ·  view source on GitHub ↗

Loop runs submitted task serially in a dedicated Goroutine.

Source from the content-addressed store, hash-verified

23
24// Loop runs submitted task serially in a dedicated Goroutine.
25type Loop struct {
26 tasks chan task
27
28 // State for closing
29 done chan struct{}
30 taskLoopDone chan struct{}
31 err atomicx.Error
32}
33
34// New creates and starts a new task loop.
35func New(onClose func()) *Loop {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected