buf: github.com/bufbuild/buf/internal/pkg/interrupt Index | Files

package interrupt

import "github.com/bufbuild/buf/internal/pkg/interrupt"

Index

Package Files

interrupt.go interrupt_unix.go

func NewSignalChannel Uses

func NewSignalChannel() (<-chan os.Signal, func())

NewSignalChannel returns a new channel for interrupt signals.

Call the returned function to cancel sending to this channel.

func WithCancel Uses

func WithCancel(ctx context.Context) (context.Context, context.CancelFunc)

WithCancel returns a context that is cancelled if interrupt signals are sent.

Package interrupt imports 4 packages (graph) and is imported by 2 packages. Updated 2020-07-19. Refresh now. Tools for package owners.