You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
It's something like a library since I am working across several platforms. And the rest of the code needs to wait for this special piece of information. No synchronous substitution is provided.Ryan Li– Ryan Li2010年12月03日 13:36:14 +00:00Commented Dec 3, 2010 at 13:36
-
2@Šime: So you mean asynchronous calls could infect all other code calling it? I just want to know if there is a way to block on these async calls.Ryan Li– Ryan Li2010年12月03日 13:40:48 +00:00Commented Dec 3, 2010 at 13:40
-
1@ryanli: There is no way to block async call unless you A: rewrite the async call to be synchronous or B: rewrite your code to work in an asynchronous environment. In javascript it is considered best practice to do B since 1999.slebetman– slebetman2010年12月03日 13:50:33 +00:00Commented Dec 3, 2010 at 13:50
lang-js