Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOperationStillPending = errors.New("operation is still pending")
Functions ¶
This section is empty.
Types ¶
type PendingOperation ¶
type PendingOperation interface { Done() <-chan struct{} Err() error Wait(ctx context.Context) error }
func TrackOperation ¶
func TrackOperation(fn func() error) PendingOperation
type WithCancel ¶
type WithCancel interface { PendingOperation Cancel() }
Click to show internal directories.
Click to hide internal directories.