function forEachAsync(_x) {
	      return _forEachAsync.apply(this, arguments);
	    }
Apply a function to every element of the dataset.

After the function is applied to a dataset element, any Tensors contained
within that element are disposed.

```js
const a = tf.data.array([1, 2, 3]);
await a.forEachAsync(e => console.log(e));
```

@param f A function to apply to each dataset element.
@returns A `Promise` that resolves after all elements have been processed.

@doc {heading: 'Data', subheading: 'Classes'}