From fc6c227ebe021a059201311245db59bf69c8473a Mon Sep 17 00:00:00 2001 From: trigaten <42948753+trigaten@users.noreply.github.com> Date: Tue, 16 Mar 2021 22:50:18 -0400 Subject: [PATCH] Update README.md call will hang --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a445cc84..11befce8 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ n = eel.js_random()() # This immediately returns the value print('Got this from Javascript:', n) ``` -You can only perform synchronous returns after the browser window has started (after calling `eel.start()`), otherwise obviously the call with hang. +You can only perform synchronous returns after the browser window has started (after calling `eel.start()`), otherwise obviously the call will hang. In Javascript, the language doesn't allow us to block while we wait for a callback, except by using `await` from inside an `async` function. So the equivalent code from the Javascript side would be: