How can I dispatch from a worker thread back to the XNIO thread in undertow.io? Is a callback the solution for this?
if (httpServerExchange.isInIoThread()) {
httpServerExchange.dispatch(new Runnable() {
@Override
public void run() {
// do something blocking
// return back to XNIO worker
}
});
}