3 ms·
Isn't that a rather narrow case? What happens on the following, is that protected? if (weakref.deref()) { /* garbage collection here */ use(hea
by josefx 5y ago
Isn't that a rather narrow case? What happens on the following, is that protected?
if (weakref.deref()) {
/* garbage collection here */
use(heavyComputations(), weakref.deref());
}
- pwdisswordfish9 5y agoYes, as long as there is no intervening suspension (await, or the script otherwise exiting to the event loop).