# io.github.libtmux.control.Delivery.kept

- **Module:** io.github.libtmux.control
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux/src/main/java/io/github/libtmux/control/Delivery.java#L22
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-control-delivery-delivery-kept/

```
io.github.libtmux.control.Delivery.kept(step: Delivery<T>) -> T
```

The event a strict reader kept. A gap fails the read.

## Parameters

- `step` (`Delivery<T>`): the subscription's next step

## Returns

the event

## Raises

- [`IllegalStateException`](https://docs.oracle.com/en/java/javase/21/docs/api/java/lang/IllegalStateException.html): if {@code step} is a gap
