MCPcopy
hub / github.com/github/gh-ost / GetAbortError

Method GetAbortError

go/base/context.go:1021–1025  ·  view source on GitHub ↗

GetAbortError retrieves the stored abort error

()

Source from the content-addressed store, hash-verified

1019
1020// GetAbortError retrieves the stored abort error
1021func (mctx *MigrationContext) GetAbortError() error {
1022 mctx.abortMutex.Lock()
1023 defer mctx.abortMutex.Unlock()
1024 return mctx.AbortError
1025}
1026
1027// CancelContext cancels the migration context to signal all goroutines to stop
1028// The cancel function is safe to call multiple times and from multiple goroutines.

Calls

no outgoing calls