search

Home  >  Q&A  >  body text

How to save the results of node-fetch request without using await

How to assign the result of the request to a variable?

怪我咯怪我咯2759 days ago718

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-06-30 09:59:11

    I don’t quite understand what you mean and the function you want to implement. Since it is an asynchronous request, it is obviously impossible to get the “result of the request” you call immediately. No matter how you implement it, you are indirectly implementing await

    reply
    0
  • Cancelreply