crankstart icon indicating copy to clipboard operation
crankstart copied to clipboard

Consider async for callbacks

Open rtsuk opened this issue 1 year ago • 3 comments

See executor.

rtsuk avatar Mar 17 '23 02:03 rtsuk

Also https://crates.io/crates/executor

rtsuk avatar Mar 17 '23 04:03 rtsuk

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

boozook avatar Aug 06 '23 18:08 boozook

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.

rtsuk avatar Aug 06 '23 18:08 rtsuk