MCPcopy Create free account
hub / github.com/cli/cli / awaitError

Function awaitError

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleChannelsFunction · 0.85

Calls 2

ErrMethod · 0.80
DoneMethod · 0.65

Tested by

no test coverage detected