>From the definition of an asynchronous function it is impossible to convert it into a synchronous function other than in the most brutal fashion as follows:
Lets say synF calls asynF and asynF on completion sets some value that synF can see. All synF has to do is go into an infinite loop that polls that value to see if it has changed and exits when it has. I'm not sure if this approach will actually work in Firefox's JavaScript. It may be that asynF will never get a chance to run because the system is busy running synF's infinite loop. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
