crankstart
crankstart copied to clipboard
Consider async for callbacks
See executor.
Also https://crates.io/crates/executor
Is it really necessary? Yes, it's beautiful, but the huge amount of closures in futures will dramatically increase the stack. Isn't it?
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.