We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89cac01 commit 2be9340Copy full SHA for 2be9340
1 file changed
crates/js-component-bindgen/src/function_bindgen.rs
@@ -1442,7 +1442,7 @@ impl Bindgen for FunctionBindgen<'_> {
1442
// TODO(threads): thread_func will contain the actual call rather than attempting to execute immediately
1443
1444
// If we're dealing with an async task, do explicit task enter
1445
- if self.requires_async_porcelain {
+ if self.is_async || self.requires_async_porcelain {
1446
uwriteln!(
1447
self.src,
1448
r#"
0 commit comments