We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
await
1 parent b0c4f7b commit f2db8cfCopy full SHA for f2db8cf
docs/cheat_sheet.md
@@ -124,6 +124,8 @@ end
124
125
### `await` JavaScript `Promise` from Ruby
126
127
+`data-eval="async"` attribute is required to use `await` in `<script>` tag:
128
+
129
```html
130
<html>
131
<script src="https://cdn.jsdelivr.net/npm/@ruby/[email protected]/dist/browser.script.iife.js"></script>
@@ -136,7 +138,7 @@ end
136
138
</html>
137
139
```
140
-Or using `@ruby/wasm-wasi` package API:
141
+Or using `@ruby/wasm-wasi` package API `RubyVM#evalAsync`:
142
143
144
0 commit comments