-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to use stabby futures #56
Comments
Hi there, Sorry for taking so long to reply, this fell through while I was on holiday. The I strongly advise against using that feature (which has now become a In general, I'd advise you stick with safe wakers until you've measured that the (small) overhead they add is unacceptable for your application (and that compiler pinning is an option for you). Finally, I'm working (at the slow pace that my schedule and small experience in rustc's codebase dictate) on an RFC to make futures generic over their wakers, allowing the existence of stable wakers with a stable ABI without compromising the current wakers' API and performance. If you need ABI-stability and 0-overhead cross-FFI futures (arguably, this need is unlikely since the overhead is negligible compared to the typical time-scales of async workloads), I'd appreciate any support you can give to this RFC to try and get traction for it :) |
Closing this issue as it doesn't really have a CTA. Feel free to reopen it if you have more questions on the topic that you feel haven't been addressed :) |
It's not clear to me what's meant by the comment on the futures module.
I've currently got a simple entry point that returns a future:
This works, the code is called and returned correctly (nb: both are compiled with the same version here, but they won't necessarily be in the future - hence I'm trying to use stabby) - however I get a warning:
What's the intended way for this to work? Are there more detailed examples somewhere?
Thanks!
The text was updated successfully, but these errors were encountered: