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

Method Close

internal/taskloop/taskloop.go:67–76  ·  view source on GitHub ↗

Close stops the loop after finishing the execution of the current task. Other pending tasks will not be executed.

()

Source from the content-addressed store, hash-verified

65// Close stops the loop after finishing the execution of the current task.
66// Other pending tasks will not be executed.
67func (l *Loop) Close() {
68 if err := l.Err(); err != nil {
69 return
70 }
71
72 l.err.Store(ErrClosed)
73
74 close(l.done)
75 <-l.taskLoopDone
76}
77
78// Run serially executes the submitted callback.
79// Blocking tasks must be cancelable by context.

Callers

nothing calls this directly

Calls 2

ErrMethod · 0.95
StoreMethod · 0.80

Tested by

no test coverage detected