@@ -254564,10 +254564,10 @@ let is_inline : attr -> bool =
254564
254564
let has_inline_payload (attrs : t) = Ext_list.find_first attrs is_inline
254565
254565
254566
254566
let is_await : attr -> bool =
254567
- fun ({ txt }, _) -> txt = "await"
254567
+ fun ({ txt }, _) -> txt = "await" || txt = "res.await"
254568
254568
254569
254569
let is_async : attr -> bool =
254570
- fun ({ txt }, _) -> txt = "async"
254570
+ fun ({ txt }, _) -> txt = "async" || txt = "res.async"
254571
254571
254572
254572
let has_await_payload (attrs : t) = Ext_list.find_first attrs is_await
254573
254573
let has_async_payload (attrs : t) = Ext_list.find_first attrs is_async
@@ -270226,7 +270226,7 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
270226
270226
| Texp_let (rec_flag, pat_expr_list, body) ->
270227
270227
transl_let rec_flag pat_expr_list (transl_exp body)
270228
270228
| Texp_function { arg_label = _; param; cases; partial } ->
270229
- let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async") in
270229
+ let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async" || txt = "res.async" ) in
270230
270230
let params, body, return_unit =
270231
270231
let pl = push_defaults e.exp_loc [] cases partial in
270232
270232
transl_function e.exp_loc partial param pl
0 commit comments