Temporarily prevents the current script from being unloaded.
This is reference-counted, so there must be one matching unpin()
happening at a later point.
Typically used in the callback of Script.bindWeak() when you need to
schedule cleanup on another thread.
Temporarily prevents the current script from being unloaded. This is reference-counted, so there must be one matching
unpin()
happening at a later point.Typically used in the callback of
Script.bindWeak()
when you need to schedule cleanup on another thread.