Skip to content

coroutine_alive() ignores coroutines that are asleep #18

@OODAX

Description

@OODAX

coroutine_alive() ignores coroutines that are asleep and api doesnt provide user a way to acces asleep.count.

assuming non-main coroutines use coroutine_sleep_* methods example code below in main coroutine won't meet its purpose:
while(coroutines_alive() > 1) { coroutines_yield(); }
it could exit the loop too early.

coroutine_alive() could return active.count + asleep.count.

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