func IsCancelled(ctx context.Context) bool {
	select {
	case <-ctx.Done():
		return true
	default:
		return false
	}
}
// IsCancelled returns true if cancel has been called on the context.
IsCancelled returns true if cancel has been called on the context.
// IsCancelled returns true if cancel has been called on the context .
func IsCancelled(ctx context.Context) bool {
	select {
	case <-ctx.Done():
		return true
	default:
		return false
	}
}
func IsCancelled ( ctx context . Context ) bool { select { case <- ctx . Done ( ) : return true default : return false } }
IsCancelled returns true if cancel has been called on the context.
IsCancelled returns true if cancel has been called on the context .