# tensorflow::ops::BarrierClose::Attrs Struct Reference

# tensorflow::ops::BarrierClose::Attrs

`#include <data_flow_ops.h>`

Optional attribute setters for [BarrierClose](https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/barrier-close#classtensorflow_1_1ops_1_1_barrier_close).

## Summary

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/barrier-close/attrs#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1ab1dc592b05a8bb3491a8230b43ea719c = false` | `bool` |

| ### Public functions ||
|---|---|
| `https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/barrier-close/attrs#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1a40057f3edbb48bbc7756552300b69689(bool x)` | `TF_MUST_USE_RESULT https://www.tensorflow.org/versions/r2.4/api_docs/cc/struct/tensorflow/ops/barrier-close/attrs#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs` If true, all pending enqueue requests that are blocked on the barrier's queue will be canceled. |

## Public attributes

### cancel_pending_enqueues_

```
bool tensorflow::ops::BarrierClose::Attrs::cancel_pending_enqueues_ = false
```

## Public functions

### CancelPendingEnqueues

```
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierClose::Attrs::CancelPendingEnqueues(
  bool x
)
```
If true, all pending enqueue requests that are blocked on the barrier's queue will be canceled.

InsertMany will fail, even if no new key is introduced.

Defaults to false