Skip to content

Direct use await whitout async function #20923

Description

Hi, what possibilities exist to be able to use the await operator without the use of async?,
as it is currently done in javascript.

Example in actual javascript

const prom = new Promise((r)=> {r('Running whitout without async 🏄
')});
await prom // Running whitout without async 🏄

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions