0

I'd like to get the app response first, then the app writes file, What should I do in Koa?

ycjcl868
  • 432
  • 3
  • 7
  • 18
  • What does your current code look like? – Sello Mkantjwa May 21 '18 at 09:19
  • I think this might be helpful: https://stackoverflow.com/questions/26516082/running-code-after-the-response-has-been-sent-by-koa As far as I understand it you might "await/yield" the next middleware function which sends the response. After that function has returned you can write your file. I haven't tried it though. – Frank Feb 04 '19 at 22:46

0 Answers0