Skip to content

Support async#64

Open
hanjinliu wants to merge 1 commit intomainfrom
async
Open

Support async#64
hanjinliu wants to merge 1 commit intomainfrom
async

Conversation

@hanjinliu
Copy link
Owner

This PR adds support of async in magic-class.

@magicclass
class A:
    x = vfield(False)
    async def f(self):
        while not self.x:
            time.sleep(0.1)
        print("Checked")

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant