slack-robot icon indicating copy to clipboard operation
slack-robot copied to clipboard

res.async should call .send automatically

Open pveyes opened this issue 9 years ago • 1 comments

I forgot why res.async(cb) didn't call res.send() automatically and instead we have to use res.async(cb).send()

pveyes avatar Jan 25 '16 08:01 pveyes

It's possible that we want to send both async and sync response together, e.g:

res.async(cb);
res.text('yo');

return res.send();

pveyes avatar May 03 '16 07:05 pveyes