Skip to content

Support for async/await syntax #75

@manishtomar

Description

@manishtomar

It will be cool to write effect code using async/await syntax introduced in PEP 492. For example, following code using do decorator:

@do
def eff_func():
   r1 = yield Effect(Intent1()) 
   r2 = yield Effect(Intent2(r1))
   yield do_return(r2)

can be written using async/await syntax as:

@do_async
async def eff_func():
   r1 = await Effect(Intent1()) 
   r2 = await Effect(Intent2(r1))
   return r2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions