1

In Smallrye Mutiny, I can add a timeout to a Uni using something like:

uni.ifNoItem().after(Duration.ofMinutes(5)).fail()

I searched for a similar API for a Multi but couldn't find any. Features I would have expected are:

  • do something if no item has been emitted for some time
  • do something if the Multi has not completed within a given time

Can this be achieved somehow?

lbilger
  • 304
  • 1
  • 8
  • 3
    Unfortunately Multi does not expose such an API yet. There is an issue about that (https://github.com/smallrye/smallrye-mutiny/issues/11). It has not been implemented yet because we are lacking of use cases and clear understanding of how it will be used. Thus, I’m very interested to hear about your case. If you could comment on the issue, it would be awesome. – Clement Mar 25 '21 at 18:20

0 Answers0