How to declare a job as busy or finished? #234
Answered
by
Hexagon
smit-luvani
asked this question in
Q&A
-
I saw isBusy() returns true/false. How can I tell programmatically that this job is currently running and will finish when an internal callback responds?
What if I want to check after 2 minutes that the job is still busy or not? |
Beta Was this translation helpful? Give feedback.
Answered by
Hexagon
Jan 25, 2024
Replies: 1 comment
-
IsBusy() should be true as long as the function is still running, or the promise returned by the function isn't fulfilled. Try to declare the triggered function async, and await the promise before returning. Or just return the promise. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
smit-luvani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IsBusy() should be true as long as the function is still running, or the promise returned by the function isn't fulfilled. Try to declare the triggered function async, and await the promise before returning. Or just return the promise.