Skip to content

feat(ao): Timeouts for coroutine functions #406

@martonlederer

Description

@martonlederer

In #360, timeouts for handlers is discussed. This feature would also be useful for any coroutine related function, such as ao.send().receive() and ao.spawn().receive(). Basically, the execution would error once the deadline is reached, making these functions able to effectively "expire".

Additionally ao.send().onReply() and ao.spawn().onReply() could also be extended to include support for timeouts, once #360 is implemented, since all these two functions need to do is to forward the timeout to the handler they create.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions