3 ms·
Yes, there's still a reference cycle because the outer closure implicitly captures self as well. The article explains it in greater detail. I agree that thread
by fauigerzigerk 7y ago
Yes, there's still a reference cycle because the outer closure implicitly captures self as well. The article explains it in greater detail.
I agree that threading is another big gotcha, arguably a bigger one. Rust has some mitigations against that sort of thing.