MCPcopy Index your code
hub / github.com/cli/cli / awaitError

Function awaitError

internal/codespaces/connection/tunnels_api_server_mock.go:431–438  ·  view source on GitHub ↗
(ctx context.Context, errc <-chan error)

Source from the content-addressed store, hash-verified

429}
430
431func awaitError(ctx context.Context, errc <-chan error) error {
432 select {
433 case <-ctx.Done():
434 return ctx.Err()
435 case err := <-errc:
436 return err
437 }
438}
439
440type socketConn struct {
441 *websocket.Conn

Callers 1

handleChannelsFunction · 0.85

Calls 2

ErrMethod · 0.80
DoneMethod · 0.65

Tested by

no test coverage detected