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

Method Err

internal/taskloop/taskloop.go:106–113  ·  view source on GitHub ↗

Err returns nil if the task loop is still running. Otherwise it return errClosed if the loop has been closed/stopped.

()

Source from the content-addressed store, hash-verified

104// Err returns nil if the task loop is still running.
105// Otherwise it return errClosed if the loop has been closed/stopped.
106func (l *Loop) Err() error {
107 select {
108 case <-l.done:
109 return ErrClosed
110 default:
111 return nil
112 }
113}
114
115// Deadline returns the no valid time as task loops have no deadline.
116func (l *Loop) Deadline() (deadline time.Time, ok bool) {

Callers 2

CloseMethod · 0.95
RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected