The resource loading... loading...

js cannot use setInterval?

Author: [Translated from Chinese], Created: 2021-08-13 18:21:02, Updated:

Is setInterval not an asynchronous function in js? I want to run an asynchronous function outside the main thread and detect order fulfillment via websocket and notify WeChat, but the error says setInterval not defined, please?img img


More

The grassNo, if you want to be asynchronous, you can think of Python.

[Translated from Chinese]Okay, thank you.