mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
15 lines
336 B
Go
15 lines
336 B
Go
package error_helpers
|
|
|
|
import (
|
|
"context"
|
|
sdkerrorhelpers "github.com/turbot/steampipe-plugin-sdk/v5/error_helpers"
|
|
)
|
|
|
|
func IsContextCanceled(ctx context.Context) bool {
|
|
return sdkerrorhelpers.IsContextCancelledError(ctx.Err())
|
|
}
|
|
|
|
func IsContextCancelledError(err error) bool {
|
|
return sdkerrorhelpers.IsContextCancelledError(err)
|
|
}
|