Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider async for callbacks #33

Open
rtsuk opened this issue Mar 17, 2023 · 3 comments
Open

Consider async for callbacks #33

rtsuk opened this issue Mar 17, 2023 · 3 comments

Comments

@rtsuk
Copy link
Collaborator

rtsuk commented Mar 17, 2023

See executor.

@rtsuk
Copy link
Collaborator Author

rtsuk commented Mar 17, 2023

@boozook
Copy link
Member

boozook commented Aug 6, 2023

Is it really necessary? Yes, it's beautiful, but the huge amount of closures in futures will dramatically increase the stack. Isn't it?

@rtsuk
Copy link
Collaborator Author

rtsuk commented Aug 6, 2023

It's not necessary, but the callback-heavy nature of the Playdate API might make it the easiest course.

I think async closures tend to be allocated on the heap, since they outlive any single stack frame.

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

No branches or pull requests

2 participants