Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancellationChannel ¶
type CancellationChannel struct { C chan struct{} Reason error // contains filtered or unexported fields }
func NewCancellationChannel ¶
func NewCancellationChannel() *CancellationChannel
func NewCancellationChannelWithCallback ¶
func NewCancellationChannelWithCallback(callback func()) *CancellationChannel
func (*CancellationChannel) Cancel ¶
func (s *CancellationChannel) Cancel()
func (*CancellationChannel) CancelWithReason ¶
func (s *CancellationChannel) CancelWithReason(reason error)
func (*CancellationChannel) IsCancelled ¶
func (s *CancellationChannel) IsCancelled() bool
func (*CancellationChannel) WaitForCancellation ¶
func (s *CancellationChannel) WaitForCancellation()
Click to show internal directories.
Click to hide internal directories.