-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to wait for the callback function? #7
Comments
@ypid, I suspect that using |
@evgenyneu Thanks for the info. What if you would put all that in a service? Could you maybe add an example to the test program? I guess the need for a blocking API is kind of common (it would be very helpful at least for me who is trying to write a wrapper class for a JavaScript library)? |
@ypid definitelly, synchronous execution can be a very common use case. I will investigate what's the best approach and will put an example in README. Thanks for the feedback. |
Thanks very much … I am looking forward to your investigation. |
Simply using a Somthing like this using a
|
That's the idea, swap out the |
@tom91136 Nice nice. Thanks. I will try your suggestions. |
Thanks @tom91136, appreciate your help. |
thanks a lot @tom91136 |
Hi
do you know a good way to turn the event driven programming into non-event driven. Lets say you want to define a function like the following example:
I have read some code in your test app:
Is this the way to go?
The text was updated successfully, but these errors were encountered: