Skip to content

coroutine_alive() ignores coroutines that are asleep #18

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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