Callbacks for invoke_from_event_loop() and Weak::upgrade_in_event_loop() should support return values #5329
Labels
a:language-rust
Rust API and codegen (mO,mS)
breaking change
Anything that probably require a semver bump
enhancement
New feature or request
Is there a reason that callbacks for
invoke_from_event_loop()
andWeak::upgrade_in_event_loop()
do not support return values?Currently I have to write code that looks like this:
It would be great if I could do this:
Of course, the return value would have to support
Send
but that sort of thing goes with the territory.The text was updated successfully, but these errors were encountered: