MCPcopy Index your code
hub / github.com/cloudspannerecosystem/spanner-cli / handleInterrupt

Function handleInterrupt

cli.go:551–556  ·  view source on GitHub ↗
(cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

549}
550
551func handleInterrupt(cancel context.CancelFunc) {
552 c := make(chan os.Signal, 1)
553 signal.Notify(c, os.Interrupt)
554 <-c
555 cancel()
556}

Callers 2

RunInteractiveMethod · 0.85
RunBatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected