Queue::exec_async
can be mis-used with just safe code
#689
Labels
Queue::exec_async
can be mis-used with just safe code
#689
If the closure passed to
exec_async
contains a reference, it might be executed even if the referenced value is gone / has changed. It's also possible to end up with +1&mut T
.Wonder if there's something that could be done, like a
'static
bound or something similar?Example:
Output example (it might segfault instead):

The text was updated successfully, but these errors were encountered: