Right now, all HTTP methods use c.context#writeAndFlush(response). It does not wait for the operation to actually finish. I'm not sure if this is the right thing to do.
Either I should use addListener to wait for the operation to finish? As an alternative, perhaps this is a great opportunity to return a future.
Right now, all HTTP methods use
c.context#writeAndFlush(response)
. It does not wait for the operation to actually finish. I'm not sure if this is the right thing to do.Either I should use
addListener
to wait for the operation to finish? As an alternative, perhaps this is a great opportunity to return a future.