Hi guys,
Could you give me a hint if there is a way to write asynchronous handlers?
So, I have my own asynchronous runtime (namely ZIO) and I wish undertow's
worker thread to do something while it's waiting for request completion
after a `dispatch` in my handler.
Is there an API allowing me to return a Future or undertow's IOFuture so I
may write an adaptor for my primitives?..
From what I can see there is that zero-arg `.dispatch()` method which
just
changes internal flag. So, from what I can understand I may just set that
flag and then complete my request totally asynchronously. Though that
method is marked deprecated without an alternative - other versions also
wait for a `Runnable`.
--
Thanks,
Pavel