Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
425 Bytes
package lifecycle
// Pausable is able to indicate if a pause operation is on-going.
//
// It is used in cases to initiate a graceful/safe abort of long-running operations
// when IsPausing returns true.
type Pausable interface {
IsPausing() bool
// PauseWait will block until a pause operation begins.
//
// It should only be used once, it will not block again
// once resume is called.
PauseWait() <-chan struct{}
}